<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>





	<title>CodeProject: FireFox-like Tab Control. Free source code and programming help</title>
	
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Description" content="An article on Tab Control; Author: vijayaprasen; Section: Tabs &amp; Property Pages; Chapter: Desktop Development">
<meta name="Keywords" content="C# 2.0, Windows, .NET, Visual Studio, GDI+, Dev, Intermediate,Tabs &amp; Property Pages,Desktop Development,Free source code, tutorials">
<meta name="Author" content="The Code Project">
<meta name="Rating" content="General">
<meta name="Robots" content="index, follow">
<meta name="Revisit-After" content="1 days">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - All topics" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=1">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - MFC / C++" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=2">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - C#" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=3">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - ASP.NET" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=4">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - .NET" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=5">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - VB.NET" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=6">
<link rel="alternate" type="application/rss+xml" title="CodeProject Lounge Postings" href="http://www.codeproject.com/webservices/LoungeRSS.aspx">
<link rel="search" type="application/opensearchdescription+xml" title="CodeProject" href="http://www.codeproject.com/info/OpenSearch.xml">
	<link rel="stylesheet" type="text/css" href="firefoxtabcontrol.aspx_files/CodeProject.css">	
	<link rel="stylesheet" type="text/css" href="firefoxtabcontrol.aspx_files/ForumClassic.css">	
	<!-- base -->
	
<script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script><script src="firefoxtabcontrol.aspx_files/ga.js" type="text/javascript"></script>
<script type="text/javascript">
   var pageTracker = _gat._getTracker("UA-1735123-1");
   pageTracker._setDomainName("www.codeproject.com");
   pageTracker._setSessionTimeout("1200"); // 20 mins
   pageTracker._initData();
   pageTracker._trackPageview();
</script>
	
	<script type="text/javascript" language="Javascript">//<![CDATA[
if(top!=self)top.location.href=location.href; if(typeof(DemoUrl)!="undefined")document.write(unescape('%3Cme')+'ta http'+'-equiv="re' +'fresh" con'+'tent="1;url='+DemoUrl+unescape('"%3CE'));
//]]></script>

<script type="text/javascript" language="Javascript" src="firefoxtabcontrol.aspx_files/oncopy.js"></script>
<script type="text/javascript" language="Javascript" src="firefoxtabcontrol.aspx_files/JobsSummaryRetriever.js"></script>
<script type="text/javascript" language="Javascript" src="firefoxtabcontrol.aspx_files/jquery-1.js"></script>
<script type="text/javascript" language="Javascript">//<![CDATA[
function ToggleMenu(itemName)
{
	var elm = document.getElementById(itemName);
	var i,others = document.getElementById('SectionMenu');
	for(i=0; i < others.childNodes.length; i++)
	{
		var other = others.childNodes[i];
		if ((other.className == 'MenuSectionBlock') && (other != elm))
			other.style.display='none';
	}
	if (elm.style.display == 'block') elm.style.display='none';
	else elm.style.display='block';
	return false;
}

//]]></script>

<script type="text/javascript" language="Javascript" src="firefoxtabcontrol.aspx_files/addto.js"></script>
<script type="text/javascript" language="Javascript" src="firefoxtabcontrol.aspx_files/jxs.js"></script>
<script type="text/javascript" language="Javascript" src="firefoxtabcontrol.aspx_files/rateitem.js"></script>
<script type="text/javascript" language="Javascript" src="firefoxtabcontrol.aspx_files/bookmark.js"></script>
<script type="text/javascript" language="Javascript">//<![CDATA[
function MarkAns(MemberID,MsgID,QID) {
 document.write(unescape("%3Cdiv class=\"CallOut\"%3E"));
 document.write("Was this a good answer to your question? ");
 document.write(unescape("%3Ca href=\"#xx" + MsgID.toString() + "xx\" "));
 document.write("onclick=\"RateMsg("+MemberID.toString()+", "+MsgID.toString()+",6,"+QID.toString()+");\"");
 document.write(unescape("%3E"));
 document.write(unescape("%3Cimg height=\"20\" width=\"20\" src=\"/script/Forums/Images/good.png\" alt=\"correct\" border=\"0\" align=\"absmiddle\" /%3E Yes%3C/a%3E"));
 document.write(unescape("%3Ca href=\"#xx" + MsgID.toString() + "xx\" "));
 document.write("onclick=\"RateMsg("+MemberID.toString()+","+MsgID.toString()+",7,"+QID.toString()+");\"");
 document.write(unescape("%3E"));
 document.write(unescape("%3Cimg height=\"20\" width=\"20\" src=\"/script/Forums/Images/bad.png\" alt=\"correct\" style=\"margin-left:10px\" border=\"0\" align=\"absmiddle\" /%3E No%3C/a%3E"));
 document.write(unescape("%3C/div%3E"));
}
function MsgVFrm(MemberID,MsgID,GB,gp,bp,mt){
 if(!GB)document.write("Rate this message: ");
 document.write(unescape("%3Ca href=\"#xx" + MsgID.toString() + "xx\" onclick=\"RateMsg(" + MemberID.toString() + ", " + MsgID.toString() + ","));document.write((GB?"5":"1")+unescape(",0);\"%3E"));
 if(GB) document.write(unescape("%3Cimg height=\"20\" width=\"20\" src=\"/script/Forums/Images/good.png\" alt=\"good\" border=\"0\" align=\"absmiddle\" /%3E "+gp+" "+mt+"%3C/a%3E "));
 else document.write(unescape("%3Cimg height=\"14\" width=\"14\" src=\"/script/Forums/Images/thumbs_down.gif\" alt=\"vote 1\" border=\"0\" align=\"middle\" /%3E%3C/a%3E "));
 if(GB)document.write(" &nbsp;"); else for(var i=1; i<=5;i++)
  document.write(unescape("%3Ca class=\"Frm_MHL\" href=\"#xx" + MsgID.toString() + "xx\" title=\"vote this message a " + i.toString() + "\" onclick=\"RateMsg(" + MemberID.toString() + ", " + MsgID.toString() + ", " + i.toString() + ",0)\"%3E%3Cb%3E" + i.toString() + "%3C/b%3E%3C/a%3E "));
 document.write(unescape("%3Ca href=\"#xx" + MsgID.toString() + "xx\" onclick=\"RateMsg(" + MemberID.toString() + ", " + MsgID.toString() + ","));document.write((GB?"1":"5")+unescape(",0);\"%3E"));
 if(GB)document.write(unescape("%3Cimg height=\"20\" width=\"20\" src=\"/script/Forums/Images/bad.png\" alt=\"bad\" border=\"0\" align=\"absmiddle\" /%3E "+bp+" "+mt+"%3C/a%3E"));
 else document.write(unescape("%3Cimg height=\"14\" width=\"14\" src=\"/script/Forums/Images/thumbs_up.gif\" border=\"0\" alt=\"vote 5\" align=\"middle\" /%3E%3C/a%3E "));
}

function ReportMsg(userid, msgid, score) {
 if (confirm("Are you sure you want to report this message?"))
  return RateMsg(userid, msgid, score, 0);
 else return false;
}
function RateMsg(memberid, msgid, score, questionId) {
 var req = new XMLHttpRequest();
 req.onreadystatechange = function() {
  if (req.readyState == 4){
   if (req.status == 200){
    var respText = req.responseText;
    var re = new RegExp(unescape("\%3Cdiv\%3E([^\%3C]*)\%3C/div\%3E"), "g");
    var match = re.exec(respText);
    voteStatus.innerHTML = unescape("%3Cb%3E") + (match&&match[1])?match[1]:"An error occured" + unescape("%3C/b%3E");
   } else
    voteStatus.innerHTML = unescape("%3Cb style='color:red'%3EFailed!") + req.statusText + unescape("%3C/b%3E");
  }
 }
 var voteStatus = document.getElementById("MVF" + msgid);
 if (!voteStatus) return;
 voteStatus.innerHTML = unescape("%3Cb style='color:green'%3EVoting...%3C/b%3E");
 var strAction = "/script/Forums/Vote.aspx?js=1&fmid="+memberid.toString()+"&select="+msgid.toString()+"&score="+score.toString()+"&qid="+questionId.toString();
 req.open("GET", strAction, true);
 req.send(null);
  return false;
}
//]]></script>

<script type="text/javascript" language="Javascript">//<![CDATA[
var Selected = "-1";

function SwitchMessage(e, msgId)
{
  if (!msgId) {
    if(!e)e=window.event;
    var target=e.target?e.target:e.srcElement;
    while(target&&target.id!='DynMessLink')target=target.parentNode;
    if(!target||target.id!='DynMessLink')return;
    msgId=target.name;
  }
  if(Selected&&Selected!=""){
    var body=eval("document.getElementById('F" + Selected + "_h1')");
    if(body) body.style.display = 'none';
    var head=eval("document.getElementById('F" + Selected + "_h0')");
    if(head) head.className = head.className.replace("Sel", "UnSel");
  }
  if(Selected==msgId.toString())
    Selected="";
  else {
    Selected=msgId.toString();
    var body=eval("document.getElementById('F" + Selected + "_h1')");
    if(body){
      if(body.style.display=='none') body.style.display='';
      else body.style.display = 'none';
    }
    var head=eval("document.getElementById('F" + Selected + "_h0')");
    if (head) 
      head.className = head.className.replace("UnSel", "Sel");
    if(body&&head&&body.style.display!='none'){
      document.body.scrollTop = getRealPos(head, "Top") - document.body.clientHeight/10;
      EnsureMessageVisible(Selected, true);
    }
  }
  if (e){if(e.preventDefault)e.preventDefault;else e.returnValue=false;}
  return false;
}

//]]></script>

<script type="text/javascript" language="Javascript" src="firefoxtabcontrol.aspx_files/ShortCuts.js"></script>
<link rel="icon" href="http://www.codeproject.com/favicon.ico" type="image/ico">
<link rel="shortcut icon" href="http://www.codeproject.com/favicon.ico" type="image/ico">

</head><body style="background-color: rgb(255, 255, 255);">

<table id="ctl00_AT" border="0" cellpadding="0" cellspacing="0">
	<tbody><tr valign="top">
		<td colspan="2">
	<table border="0" cellpadding="0" cellspacing="0">
	<tbody><tr>
		<td class="HeaderLogo"><a href="http://www.codeproject.com/"><img id="ctl00_Logo" src="firefoxtabcontrol.aspx_files/logo225x90.gif" alt="The Code Project" style="border-width: 0px; height: 90px; width: 225px;"></a></td>				 
		<td class="HeaderBanner" align="right" width="100%">
		<iframe src="firefoxtabcontrol.aspx_files/ServeHTML.htm" scrolling="no" width="728" frameborder="0" height="90"></iframe></td>
	</tr>
	<tr><td colspan="2">

<table class="MemberNavBar" cellpadding="5" cellspacing="0" width="100%">
<tbody><tr>
<td class="SmallText" style="font-weight: bold;">5,652,525 members and growing! (16,090 online)</td>
<td align="right">

<div id="ctl00_MemberMenu_LoggedOnOptions" class="MemberNavBarText">
			
<a id="ctl00_MemberMenu_MyProfile" href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=4827870">xSeder</a> | 
<a id="ctl00_MemberMenu_MySettings" href="http://www.codeproject.com/script/Membership/Modify.aspx">My Settings</a> |
<a id="ctl00_MemberMenu_MyCodeProject" href="http://www.codeproject.com/script/Membership/MyCodeProject.aspx"><b>My CodeProject</b></a> |
<a id="ctl00_MemberMenu_MyBookmarks" href="http://www.codeproject.com/script/Bookmarks/List.aspx?obtid=2"><img src="firefoxtabcontrol.aspx_files/fave.gif" align="absmiddle" border="0" width="16" height="16"> My Bookmarks</a> |
<a id="ctl00_MemberMenu_MyArticles" href="http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=4827870">My Articles</a> |

<a id="ctl00_MemberMenu_Signout" href="http://www.codeproject.com/script/Membership/LogOff.aspx?rp=%2fKB%2ftabs%2ffirefoxtabcontrol.aspx">Sign out</a>

		</div>



</td>
</tr>
</tbody></table></td></tr>
	<tr><td colspan="2">
<table class="SiteNavBar" id="tblSiteToolbar" cellpadding="0" cellspacing="0">
<tbody><tr>

<td nowrap="nowrap"><a href="http://www.codeproject.com/">Home</a></td><td> &nbsp; </td><td style="font-weight: normal;" align="right" nowrap="nowrap">Current Site:</td><td class="SelCat" nowrap="nowrap"><a href="http://www.codeproject.com/">C++ / .NET</a></td>
<td nowrap="nowrap"><a href="http://java.codeproject.com/">Java</a></td>
<td nowrap="nowrap"><a href="http://sql.codeproject.com/">SQL</a></td>
<td nowrap="nowrap"><a href="http://lamp.codeproject.com/">Linux / Unix</a></td>

<td width="100%">&nbsp;</td>
<td id="ctl00_TopNavBar_RightMenus">
	<div id="MenuPos" style="position: relative; width: 380px; height: 22px; top: 1px;">
	<table style="border-width: 0px; height: 20px;" cellpadding="0" cellspacing="0" width="380">
	<tbody><tr valign="middle">
	<td style="border-width: 0pt;" nowrap="nowrap"><a href="http://www.codeproject.com/info/FAQ.aspx">Help!</a></td>
<td style="border-width: 0pt;" nowrap="nowrap"><a href="http://www.codeproject.com/script/Articles/Latest.aspx">Articles</a></td>
<td style="border-width: 0pt;" nowrap="nowrap"><a href="http://www.codeproject.com/script/Forums/List.aspx">Message Boards</a></td>
<td style="border-width: 0pt;" nowrap="nowrap"><a href="http://www.codeproject.com/script/Jobs/List.aspx">Job Board</a></td>
<td style="border-width: 0pt;" nowrap="nowrap"><a href="http://www.codeproject.com/Lounge.aspx">Lounge</a></td>

	</tr>
	</tbody></table>
	</div>
</td>
		
</tr>

</tbody></table>
</td></tr>
	</tbody></table>
</td>
	</tr>
	<tr>
		<td colspan="2" valign="top">
		<a name="_top"></a>
		<table id="ctl00_ArticleTopHeader_HeaderTable" class="ArticleHeader" border="0" cellpadding="3" cellspacing="0" width="100%">
			<tbody><tr valign="top">
				<td class="SmallText">
	<a id="ctl00_ArticleTopHeader_ChapterLink" href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=1">Desktop Development</a> »
	<a id="ctl00_ArticleTopHeader_SectionLink" href="http://www.codeproject.com/KB/tabs/">Tabs &amp; Property Pages</a> »
	<a id="ctl00_ArticleTopHeader_SubsectionLink" href="http://www.codeproject.com/KB/tabs/index.aspx?#Tabs%20&amp;%20Property%20Pages%20-%20Tabs%20and%20Property%20Pages">Tabs and Property Pages</a>
	<span id="ctl00_ArticleTopHeader_SkillLevel" class="ArticleIntermediate">&nbsp;&nbsp;&nbsp; Intermediate</span> <span id="ctl00_ArticleTopHeader_LicenceTerms" class="SmallText" style="margin-left: 40px;">License: <a href="http://www.codeproject.com/info/cpol10.aspx">The Code Project Open License (CPOL)</a></span>
	<br><br>
	<h1><span id="ctl00_ArticleTopHeader_ArticleTitle" class="ArticleTopTitle">FireFox-like Tab Control</span></h1>
	<b>By <a href="http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=168649">vijayaprasen</a></b><br>
	
	<br>
    <span id="ctl00_ArticleTopHeader_ArticleDescr" class="ArticleTopDescr">An article on Tab Control</span>
</td>
				<td class="SmallText" style="width: 210px;">
	<span id="ctl00_ArticleTopHeader_ArticleAttributes">C# 2.0, C#, Windows, .NET, Visual Studio, GDI+, Dev</span><br><br>
	<span style="width: 14ex;">Posted</span>: <b>16 Aug 2007</b><br>
	<span style="width: 14ex;">Updated</span>: <b>24 Jun 2008</b>
	<br>
	<span style="width: 14ex;">Views</span>: <b>43,825</b><br>
	
	    <span style="width: 14ex;">Bookmarked</span>: <b>98 times</b><br>
	    
	
</td>
			</tr>
			<tr>
				<td colspan="2">
	<table width="100%">
	<tbody><tr>
	<td></td>
	<td style="white-space: nowrap;" class="SmallText" align="right">
	</td>
	</tr>
	</tbody></table>
</td>
			</tr>
		</tbody></table>
		

	</td>
	</tr>
	<tr valign="top">
		<td id="ctl00_LeftNavCell" class="LHNavBar">
	

<div class="FeatureBlockHeader">Announcements</div>
<div class="FeatureBlockContent RHFeatureBar" style="margin: 0pt; padding: 0pt;">
<table cellpadding="2">




			

<tbody><tr valign="middle"><td><img src="firefoxtabcontrol.aspx_files/Info_24.png" alt="Comp" width="24" height="24"></td>
<td><a href="http://www.codeproject.com/script/Awards/Competition.aspx?cid=286">Mobile Developer Contest</a></td></tr>


<tr valign="middle"><td><img src="firefoxtabcontrol.aspx_files/MonthlyComp.png" alt="Comp" align="middle" width="24" height="24"></td>
<td><a id="ctl00_Announcements_CompLink" href="http://www.codeproject.com/Feature/ArticleCompetition/">Monthly Competition</a></td></tr>

</tbody></table>
</div>
		
	
<div id="Th">

<div class="FeatureBlockHeader" style="margin-top: 7px;">Want a new Job?</div>
<div class="FeatureBlockContent RHFeatureBar">


<ul class="InfoList">

		<li>
		<a id="RelatedJobs_RC_ctl00_Lnk" href="http://www.codeproject.com/script/Jobs/View.aspx?jid=50">Senior .NET Programmer/Architect</a>
		 at Greater Than Solutions 
		 in United States
		</li>		
	
		<li>
		<a id="RelatedJobs_RC_ctl01_Lnk" href="http://www.codeproject.com/script/Jobs/View.aspx?jid=361">Technical Designer</a>
		 at Xceed Software
		 in Canada
		</li>		
	
		<li>
		<a id="RelatedJobs_RC_ctl02_Lnk" href="http://www.codeproject.com/script/Jobs/View.aspx?jid=252">Senior SQL Developer/Lead</a>
		 at Quantum
		 in Canada
		</li>		
	
<li>
	<a id="RelatedJobs_LJ" href="http://www.codeproject.com/script/Jobs/List.aspx">View Latest Jobs...</a>
</li>
</ul>

</div>
</div>

	
	
	<div id="SectionMenu">
<div class="MenuCat">Chapters</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=1" onclick="return ToggleMenu('Chapter1');">Desktop Development</a></div>
<div class="MenuSectionBlock" id="Chapter1">
<div class="MI" id="Section1"><a href="http://www.codeproject.com/KB/buttons/">Button Controls</a></div>
<div class="MI" id="Section15"><a href="http://www.codeproject.com/KB/clipboard/">Clipboard</a></div>
<div class="MI" id="Section2"><a href="http://www.codeproject.com/KB/combobox/">Combo &amp; List Boxes</a></div>
<div class="MI" id="Section67"><a href="http://www.codeproject.com/KB/dialog/">Dialogs and Windows</a></div>
<div class="MI" id="Section107"><a href="http://www.codeproject.com/KB/gadgets/">Desktop Gadgets</a></div>
<div class="MI" id="Section16"><a href="http://www.codeproject.com/KB/docview/">Document / View</a></div>
<div class="MI" id="Section4"><a href="http://www.codeproject.com/KB/edit/">Edit Controls</a></div>
<div class="MI" id="Section17"><a href="http://www.codeproject.com/KB/files/">Files and Folders</a></div>
<div class="MI" id="Section3"><a href="http://www.codeproject.com/KB/grid/">Grid &amp; Data Controls</a></div>
<div class="MI" id="Section5"><a href="http://www.codeproject.com/KB/list/">List Controls</a></div>
<div class="MI" id="Section6"><a href="http://www.codeproject.com/KB/menus/">Menus</a></div>
<div class="MI" id="Section14"><a href="http://www.codeproject.com/KB/miscctrl/">Miscellaneous</a></div>
<div class="MI" id="Section18"><a href="http://www.codeproject.com/KB/printing/">Printing</a></div>
<div class="MI" id="Section95"><a href="http://www.codeproject.com/KB/progress/">Progress Controls</a></div>
<div class="MI" id="Section11"><a href="http://www.codeproject.com/KB/selection/">Selection Controls</a></div>
<div class="MI" id="Section19"><a href="http://www.codeproject.com/KB/shell/">Shell and IE programming</a></div>
<div class="MI" id="Section68"><a href="http://www.codeproject.com/KB/smart/">Smart Client</a></div>
<div class="MI" id="Section8"><a href="http://www.codeproject.com/KB/splitter/">Splitter Windows</a></div>
<div class="MI" id="Section9"><a href="http://www.codeproject.com/KB/static/">Static &amp; Panel Controls</a></div>
<div class="MI" id="Section10"><a href="http://www.codeproject.com/KB/statusbar/">Status Bar</a></div>
<div class="MIS" id="Section7"><a href="http://www.codeproject.com/KB/tabs/">Tabs &amp; Property Pages</a></div>
<div class="MI" id="Section12"><a href="http://www.codeproject.com/KB/toolbars/">Toolbars &amp; Docking windows</a></div>
<div class="MI" id="Section13"><a href="http://www.codeproject.com/KB/tree/">Tree Controls</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=2" onclick="return ToggleMenu('Chapter2');">Web Development</a></div>
<div class="MenuSectionBlock" id="Chapter2" style="display: none;">
<div class="MI" id="Section70"><a href="http://www.codeproject.com/KB/ajax/">Ajax and Atlas</a></div>
<div class="MI" id="Section27"><a href="http://www.codeproject.com/KB/applications/">Applications &amp; Tools</a></div>
<div class="MI" id="Section85"><a href="http://www.codeproject.com/KB/asp/">ASP</a></div>
<div class="MI" id="Section89"><a href="http://www.codeproject.com/KB/aspnet/">ASP.NET</a></div>
<div class="MI" id="Section28"><a href="http://www.codeproject.com/KB/webforms/">ASP.NET Controls</a></div>
<div class="MI" id="Section38"><a href="http://www.codeproject.com/KB/ATL-Server/">ATL Server</a></div>
<div class="MI" id="Section29"><a href="http://www.codeproject.com/KB/web-cache/">Caching</a></div>
<div class="MI" id="Section91"><a href="http://www.codeproject.com/KB/web-image/">Charts, Graphs and Images</a></div>
<div class="MI" id="Section25"><a href="http://www.codeproject.com/KB/scripting/">Client side scripting</a></div>
<div class="MI" id="Section30"><a href="http://www.codeproject.com/KB/custom-controls/">Custom Controls</a></div>
<div class="MI" id="Section23"><a href="http://www.codeproject.com/KB/HTML/">HTML / CSS</a></div>
<div class="MI" id="Section24"><a href="http://www.codeproject.com/KB/ISAPI/">ISAPI</a></div>
<div class="MI" id="Section33"><a href="http://www.codeproject.com/KB/server-management/">Site &amp; Server Management</a></div>
<div class="MI" id="Section34"><a href="http://www.codeproject.com/KB/session/">Session State</a></div>
<div class="MI" id="Section113"><a href="http://www.codeproject.com/KB/silverlight/">Silverlight</a></div>
<div class="MI" id="Section36"><a href="http://www.codeproject.com/KB/trace/">Trace and Logs</a></div>
<div class="MI" id="Section31"><a href="http://www.codeproject.com/KB/user-controls/">User Controls</a></div>
<div class="MI" id="Section37"><a href="http://www.codeproject.com/KB/validation/">Validation</a></div>
<div class="MI" id="Section35"><a href="http://www.codeproject.com/KB/viewstate/">View State</a></div>
<div class="MI" id="Section26"><a href="http://www.codeproject.com/KB/WAP/">WAP / WML</a></div>
<div class="MI" id="Section32"><a href="http://www.codeproject.com/KB/web-security/">Web Security</a></div>
<div class="MI" id="Section20"><a href="http://www.codeproject.com/KB/webservices/">Web Services</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=9" onclick="return ToggleMenu('Chapter9');">Enterprise Systems</a></div>
<div class="MenuSectionBlock" id="Chapter9" style="display: none;">
<div class="MI" id="Section98"><a href="http://www.codeproject.com/KB/MCMS/">Content Management Server</a></div>
<div class="MI" id="Section99"><a href="http://www.codeproject.com/KB/biztalk/">Microsoft BizTalk Server</a></div>
<div class="MI" id="Section102"><a href="http://www.codeproject.com/KB/exchange/">Microsoft Exchange</a></div>
<div class="MI" id="Section90"><a href="http://www.codeproject.com/KB/office/">Office Development</a></div>
<div class="MI" id="Section101"><a href="http://www.codeproject.com/KB/sharepoint/">SharePoint Server</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=3" onclick="return ToggleMenu('Chapter3');">Multimedia</a></div>
<div class="MenuSectionBlock" id="Chapter3" style="display: none;">
<div class="MI" id="Section42"><a href="http://www.codeproject.com/KB/audio-video/">Audio and Video</a></div>
<div class="MI" id="Section44"><a href="http://www.codeproject.com/KB/directx/">DirectX</a></div>
<div class="MI" id="Section46"><a href="http://www.codeproject.com/KB/GDI/">GDI</a></div>
<div class="MI" id="Section47"><a href="http://www.codeproject.com/KB/GDI-plus/">GDI+</a></div>
<div class="MI" id="Section43"><a href="http://www.codeproject.com/KB/graphics/">General Graphics</a></div>
<div class="MI" id="Section45"><a href="http://www.codeproject.com/KB/openGL/">OpenGL</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=4" onclick="return ToggleMenu('Chapter4');">Database</a></div>
<div class="MenuSectionBlock" id="Chapter4" style="display: none;">
<div class="MI" id="Section66"><a href="http://www.codeproject.com/KB/database/">Database</a></div>
<div class="MI" id="Section100"><a href="http://www.codeproject.com/KB/reporting-services/">SQL Reporting Services</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=8" onclick="return ToggleMenu('Chapter8');">Platforms, Frameworks &amp; Libraries</a></div>
<div class="MenuSectionBlock" id="Chapter8" style="display: none;">
<div class="MI" id="Section83"><a href="http://www.codeproject.com/KB/atl/">ATL</a></div>
<div class="MI" id="Section117"><a href="http://www.codeproject.com/KB/MFC/">MFC</a></div>
<div class="MI" id="Section88"><a href="http://www.codeproject.com/KB/stl/">STL</a></div>
<div class="MI" id="Section84"><a href="http://www.codeproject.com/KB/wtl/">WTL</a></div>
<div class="MI" id="Section49"><a href="http://www.codeproject.com/KB/COM/">COM / COM+</a></div>
<div class="MI" id="Section76"><a href="http://www.codeproject.com/KB/dotnet/">.NET Framework</a></div>
<div class="MI" id="Section92"><a href="http://www.codeproject.com/KB/winsdk/">Win32/64 SDK &amp; OS</a></div>
<div class="MI" id="Section108"><a href="http://www.codeproject.com/KB/vista/">Vista API</a></div>
<div class="MI" id="Section110"><a href="http://www.codeproject.com/KB/vista-security/">Vista Security</a></div>
<div class="MI" id="Section82"><a href="http://www.codeproject.com/KB/cross-platform/">Cross Platform</a></div>
<div class="MI" id="Section69"><a href="http://www.codeproject.com/KB/game/">Game Development</a></div>
<div class="MI" id="Section73"><a href="http://www.codeproject.com/KB/mobile/">Mobile Development</a></div>
<div class="MI" id="Section106"><a href="http://www.codeproject.com/KB/WC/">Windows CardSpace</a></div>
<div class="MI" id="Section103"><a href="http://www.codeproject.com/KB/WCF/">Windows Communication Foundation</a></div>
<div class="MI" id="Section104"><a href="http://www.codeproject.com/KB/WPF/">Windows Presentation Foundation</a></div>
<div class="MI" id="Section105"><a href="http://www.codeproject.com/KB/WF/">Windows Workflow Foundation</a></div>
<div class="MI" id="Section119"><a href="http://www.codeproject.com/KB/library/">Libraries</a></div>
<div class="MI" id="Section122"><a href="http://www.codeproject.com/KB/powershell/">Windows Powershell</a></div>
<div class="MI" id="Section123"><a href="http://www.codeproject.com/KB/linq/">LINQ</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=5" onclick="return ToggleMenu('Chapter5');">Languages</a></div>
<div class="MenuSectionBlock" id="Chapter5" style="display: none;">
<div class="MI" id="Section71"><a href="http://www.codeproject.com/KB/cpp/">C / C++ Language</a></div>
<div class="MI" id="Section72"><a href="http://www.codeproject.com/KB/mcpp/">C++ / CLI</a></div>
<div class="MI" id="Section93"><a href="http://www.codeproject.com/KB/cs/">C#</a></div>
<div class="MI" id="Section78"><a href="http://www.codeproject.com/KB/msil/">MSIL</a></div>
<div class="MI" id="Section86"><a href="http://www.codeproject.com/KB/vbscript/">VBScript</a></div>
<div class="MI" id="Section87"><a href="http://www.codeproject.com/KB/vb/">VB.NET</a></div>
<div class="MI" id="Section115"><a href="http://www.codeproject.com/KB/vb-interop/">VB6 Interop</a></div>
<div class="MI" id="Section77"><a href="http://www.codeproject.com/KB/net-languages/">Other .NET Languages</a></div>
<div class="MI" id="Section21"><a href="http://www.codeproject.com/KB/XML/">XML</a></div>
<div class="MI" id="Section96"><a href="http://www.codeproject.com/KB/java/">Java</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=6" onclick="return ToggleMenu('Chapter6');">General Programming</a></div>
<div class="MenuSectionBlock" id="Chapter6" style="display: none;">
<div class="MI" id="Section57"><a href="http://www.codeproject.com/KB/recipes/">Algorithms &amp; Recipes</a></div>
<div class="MI" id="Section64"><a href="http://www.codeproject.com/KB/bugs/">Bugs &amp; Workarounds</a></div>
<div class="MI" id="Section79"><a href="http://www.codeproject.com/KB/collections/">Collections</a></div>
<div class="MI" id="Section56"><a href="http://www.codeproject.com/KB/security/">Cryptography &amp; Security</a></div>
<div class="MI" id="Section50"><a href="http://www.codeproject.com/KB/datetime/">Date and Time</a></div>
<div class="MI" id="Section52"><a href="http://www.codeproject.com/KB/DLL/">DLLs &amp; Assemblies</a></div>
<div class="MI" id="Section80"><a href="http://www.codeproject.com/KB/exception/">Exception Handling</a></div>
<div class="MI" id="Section81"><a href="http://www.codeproject.com/KB/locale/">Localisation</a></div>
<div class="MI" id="Section53"><a href="http://www.codeproject.com/KB/macros/">Macros and Add-ins</a></div>
<div class="MI" id="Section54"><a href="http://www.codeproject.com/KB/tips/">Programming Tips</a></div>
<div class="MI" id="Section55"><a href="http://www.codeproject.com/KB/string/">String handling</a></div>
<div class="MI" id="Section22"><a href="http://www.codeproject.com/KB/IP/">Internet / Network</a></div>
<div class="MI" id="Section58"><a href="http://www.codeproject.com/KB/threads/">Threads, Processes &amp; IPC</a></div>
<div class="MI" id="Section59"><a href="http://www.codeproject.com/KB/winhelp/">WinHelp / HTMLHelp</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=10" onclick="return ToggleMenu('Chapter10');">Graphics / Design</a></div>
<div class="MenuSectionBlock" id="Chapter10" style="display: none;">
<div class="MI" id="Section40"><a href="http://www.codeproject.com/KB/expression/">Expression</a></div>
<div class="MI" id="Section114"><a href="http://www.codeproject.com/KB/usability/">Usability</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=11" onclick="return ToggleMenu('Chapter11');">Development Lifecycle</a></div>
<div class="MenuSectionBlock" id="Chapter11" style="display: none;">
<div class="MI" id="Section51"><a href="http://www.codeproject.com/KB/debug/">Debug Tips</a></div>
<div class="MI" id="Section39"><a href="http://www.codeproject.com/KB/architecture/">Design and Architecture</a></div>
<div class="MI" id="Section112"><a href="http://www.codeproject.com/KB/install/">Installation</a></div>
<div class="MI" id="Section41"><a href="http://www.codeproject.com/KB/work/">Work Issues</a></div>
<div class="MI" id="Section128"><a href="http://www.codeproject.com/KB/testing/">Testing and QA</a></div>
<div class="MI" id="Section126"><a href="http://www.codeproject.com/KB/codegen/">Code Generation</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=7" onclick="return ToggleMenu('Chapter7');">General Reading</a></div>
<div class="MenuSectionBlock" id="Chapter7" style="display: none;">
<div class="MI" id="Section60"><a href="http://www.codeproject.com/KB/books/">Book Chapters</a></div>
<div class="MI" id="Section61"><a href="http://www.codeproject.com/KB/book-reviews/">Book Reviews</a></div>
<div class="MI" id="Section109"><a href="http://www.codeproject.com/KB/hardware-review/">Hardware Reviews</a></div>
<div class="MI" id="Section63"><a href="http://www.codeproject.com/KB/interviews/">Interviews</a></div>
<div class="MI" id="Section62"><a href="http://www.codeproject.com/KB/scrapbook/">Scrapbook</a></div>
<div class="MI" id="Section48"><a href="http://www.codeproject.com/KB/system/">Hardware &amp; System</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chptId=12" onclick="return ToggleMenu('Chapter12');">Third Party Products</a></div>
<div class="MenuSectionBlock" id="Chapter12" style="display: none;">
<div class="MI" id="Section65"><a href="http://www.codeproject.com/KB/showcase/">Product Showcase</a></div>
<div class="MI" id="Section124"><a href="http://www.codeproject.com/KB/solution-center/">Solution Center</a></div>
</div>
</div>
<br>
<div class="MenuCat">Services</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Jobs/List.aspx">Job Board</a></div>
<div class="MenuChapter"><a href="http://www.codeproject.com/Services/coffee.aspx">Code Project Coffee</a></div>
<div class="MenuChapter"><a href="http://www.codeproject.com/Services/TradePub.aspx">Free Magazines</a></div>
<br><div class="MenuCat">Feature Zones</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/kb/Showcase/">Product Showcase</a></div>
<div class="MenuChapter"><a href="http://www.codeproject.com/Zones/IBM">IBM DeveloperWorks</a></div>
<div class="MenuChapter"><a href="http://www.codeproject.com/Zones/WhitePapers">WhitePapers / Webcasts</a></div>
<div class="MenuChapter"><a href="http://www.codeproject.com/Zones/Acresso">InstallShield 2009</a></div>
<div class="MenuChapter"><a href="http://www.codeproject.com/Zones/APress">Apress Bookstore</a></div>
<br>

	<div style="text-align: center; margin-bottom: 10px;">
		<script type="text/javascript">document.write(unescape("%3ca%20href%3d%22http%3a%2f%2fwww.codeproject.com%2fRedir.aspx%3fadid%3d6247%26way%3dban%22%20target%3d%22_blank%22%20rel%3d%22nofollow%22%3e%3cimg%20src%3d%22http%3a%2f%2fwww.codeproject.com%2fscript%2fAdm%2fServeImg.aspx%3fFile%3d%252fscript%252fAdm%252fimages%252fcp_daily_150x80.gif%26C%3dFalse%26adid%3d6247%22%20alt%3d%22%22%20border%3d%220%22%20width%3d%22150%22%20height%3d%2280%22%3e%3c%2fa%3e"));</script><a href="http://www.codeproject.com/Redir.aspx?adid=6247&amp;way=ban" target="_blank" rel="nofollow"><img src="firefoxtabcontrol.aspx_files/ServeImg_002.htm" alt="" border="0" width="150" height="80"></a>
	</div>
	
	<script type="text/javascript">document.write(unescape("%3ca%20href%3d%22http%3a%2f%2fwww.codeproject.com%2fRedir.aspx%3fadid%3d5305%26way%3dban%22%20target%3d%22_blank%22%20rel%3d%22nofollow%22%3e%3cimg%20src%3d%22http%3a%2f%2fwww.codeproject.com%2fscript%2fAdm%2fServeImg.aspx%3fFile%3d%252fscript%252fAdm%252fimages%252fIBMdeveloperWorks_160x600.gif%26C%3dFalse%26adid%3d5305%22%20alt%3d%22%22%20border%3d%220%22%20width%3d%22160%22%20height%3d%22600%22%3e%3c%2fa%3e"));</script><a href="http://www.codeproject.com/Redir.aspx?adid=5305&amp;way=ban" target="_blank" rel="nofollow"><img src="firefoxtabcontrol.aspx_files/ServeImg_004.htm" alt="" border="0" width="160" height="600"></a>						 
</td>
		<td class="ArticlePane" valign="top">

	
<table class="SearchHeaderBar" cellspacing="0" width="100%">
<tbody><tr>
<td style="white-space: nowrap; width: 60%;" align="right" valign="middle">
<form method="get" action="/info/search.aspx" name="Search" style="margin: 0pt;">
<b>Search &nbsp;</b>
<input class="SmallText" name="artkw" style="width: 200px;">
<select class="SmallText" style="font-weight: bold;" name="sbo">
<option value="kw" selected="true">Articles</option>
<option value="fm">Messages</option>
<option value="s">Jobs</option>

</select>
<input class="SmallText" style="font-weight: bold;" value=" Go! " type="submit"> &nbsp;
</form>
</td>

<td class="TinyText" style="white-space: nowrap;">
<a href="http://www.codeproject.com/info/search.aspx">Advanced Search</a><br>
<a href="http://www.codeproject.com/script/Content/SiteMap.aspx">Sitemap</a>

</td>
</tr>
</tbody></table>

	<span id="ctl00_ResultMessage"></span>
	
	
    
	<div id="ctl00_ArtDiv">
	<table border="0" cellpadding="0" cellspacing="0">	
	<tbody><tr valign="top">
		<td valign="top" width="100%">
		    
<table>

</table>



			
<div class="SmallText">
<img src="firefoxtabcontrol.aspx_files/print.gif" alt="print" style="vertical-align: middle;" width="16" height="16">
<a id="ctl00_ArticleHeaderLinks_PrintLnk" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?display=Print">Print</a> &nbsp;

<img src="firefoxtabcontrol.aspx_files/report.gif" alt="Broken Article?" style="vertical-align: middle;" width="16" height="16">
<a id="ctl00_ArticleHeaderLinks_BrokenLnk" href="http://www.codeproject.com/script/Articles/Report.aspx?aid=20050">Report Article</a> &nbsp;



<img src="firefoxtabcontrol.aspx_files/watchon.png" alt="Watch" style="vertical-align: middle;">

<a id="ctl00_ArticleHeaderLinks_ArticleBmkWatch_WatchMe" name="bmw_20050_2" class="" onclick="return watchMe(20050, 2);" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=20050&amp;obtid=2&amp;bma=AddWatch">Watch</a>
<span id="ctl00_ArticleHeaderLinks_ArticleBmkWatch_StatusMsg" class="TinyText" style="visibility: hidden;" name="bmw_20050_2"></span>
 &nbsp;

<img src="firefoxtabcontrol.aspx_files/link.png" alt="Bookmark" style="vertical-align: middle;" width="16" height="16">

<a id="ctl00_ArticleHeaderLinks_ArticleBmk_BookmarkMe" name="bm_20050_2" class="" onclick="return bookmarkMe(20050, 2);" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=20050&amp;obtid=2&amp;bma=AddBookmark">Bookmark</a>
<span id="ctl00_ArticleHeaderLinks_ArticleBmk_StatusMsg" class="TinyText" style="visibility: hidden;" name="bm_20050_2"></span>

 &nbsp;

<img src="firefoxtabcontrol.aspx_files/discuss.gif" alt="Discuss" style="vertical-align: middle;" width="15" height="16">
<a href="#_comments">Discuss</a> &nbsp;

<img src="firefoxtabcontrol.aspx_files/mail.gif" alt="Recommend Article" style="vertical-align: middle;" width="16" height="16">&nbsp;<a id="ctl00_ArticleHeaderLinks_Recommend" href="http://www.codeproject.com/script/common/TellFriend.aspx?obtid=2&amp;obid=20050">Send&nbsp;to&nbsp;a&nbsp;friend</a>	
</div>
		</td>
		<td style="text-align: right; white-space: nowrap; width: 100px;">
		<table id="CurRat"><tbody><tr><td>            
<table><tbody><tr><td id="ctl00_ArticleRating_VL" style="white-space: nowrap;" class="SmallText" align="right"> 
<span id="ctl00_ArticleRating_VoteLabel">35 votes for this Article.</span></td>
		
<td><table border="1" cellpadding="0" cellspacing="0">
			<tbody><tr>
				<td bgcolor="White" width="20" height="7"><img src="firefoxtabcontrol.aspx_files/red.gif" align="center" border="0" width="20" height="7"></td>
				<td bgcolor="White" width="20" height="7"><img src="firefoxtabcontrol.aspx_files/red.gif" align="center" border="0" width="20" height="7"></td>
				<td bgcolor="White" width="20" height="7"><img src="firefoxtabcontrol.aspx_files/red.gif" align="center" border="0" width="20" height="7"></td>
				<td bgcolor="White" width="20" height="7"><img src="firefoxtabcontrol.aspx_files/red.gif" align="center" border="0" width="20" height="7"></td>
				<td bgcolor="White" width="20" height="7" nowrap="nowrap"><img src="firefoxtabcontrol.aspx_files/red.gif" align="center" border="0" width="5" height="7"></td>
			</tr>
		</tbody></table>
		<span id="ctl00_ArticleRating_Votes" class="SmallText"></span></td></tr>
<tr id="ctl00_ArticleRating_PopularityRow">
			<td colspan="2" class="SmallText" align="right">
<a id="ctl00_ArticleRating_PopularityLnk" title="Calculated as rating x Log10(# votes)" href="http://www.codeproject.com/script/Articles/TopArticles.aspx?ta_so=1">Popularity: 6.60</a>
<span id="ctl00_ArticleRating_PopularityLbl"></span><span id="ratingVal">Rating: <b>4.27</b> out of 5</span></td>
		</tr>
		</tbody></table>



</td>
		<td>            
<div>
<table class="HistTable" title="Voting Distribution. Recent data only"><tbody><tr><td><img src="firefoxtabcontrol.aspx_files/pollcol.gif" alt="1 vote, 3.2%" title="1 vote, 3.2%" border="0" width="10" height="1"><br>1</td>
<td><img src="firefoxtabcontrol.aspx_files/pollcol.gif" alt="3 votes, 9.7%" title="3 votes, 9.7%" border="0" width="10" height="3"><br>2</td>
<td><img src="firefoxtabcontrol.aspx_files/pollcol.gif" alt="2 votes, 6.5%" title="2 votes, 6.5%" border="0" width="10" height="2"><br>3</td>
<td><img src="firefoxtabcontrol.aspx_files/pollcol.gif" alt="5 votes, 16.1%" title="5 votes, 16.1%" border="0" width="10" height="5"><br>4</td>
<td><img src="firefoxtabcontrol.aspx_files/pollcol.gif" alt="20 votes, 64.5%" title="20 votes, 64.5%" border="0" width="10" height="20"><br>5</td>
</tr></tbody></table>
</div>



</td></tr></tbody></table>
		</td>
	</tr>
	</tbody></table>
	
	
	
	

	
	

	
	
	
	
	
	
	
	
	
	<div id="contentdiv">
	
	<!-- Main Page Contents Start -->
	

<!-- Article Starts -->


<ul class="download">
<li><a href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol/SourceCode_TabControl_2005.zip">Download source - 18.62 KB </a></li>
</ul>

<p><img alt="Screenshot - image001.png" src="firefoxtabcontrol.aspx_files/image001.png" width="640" height="306"></p>

<h2>Introduction</h2>

<p>Recently I came across a requirement for a tab control to be closed
from the header itself. This means the user doesn't need to switch to
any tab page in order to close it. The perfect example for this one is
Firefox browser. In Firefox, the user can open as many tabs as he wants
and he can close any tab at any time without opening the tab. I tried
Googling a solution and didn't find anything that was exactly what I
wanted. Then I thought about implementing my own tab control with the
same functionality. So finally, here is the control.</p>

<h2>Using the Code</h2>

<p>The control enables the designer to add/remove tab pages like a
normal tab control with the new look and feel. The classes that support
this features are:</p>

<ol>
<li><em>TabCtlEx.cs </em>(inherited from <code>System.Windows.Forms.TabControl</code>) </li>

<li><em>TabPage.cs </em>(inherited from <code>System.Windows.Forms.TabPage</code>) </li>
</ol>

<p>Using this control is straightforward, like the .NET tab control. </p>

<div class="SmallText" id="premain0" style="width: 100%; cursor: pointer;"><img preid="0" src="firefoxtabcontrol.aspx_files/minus.gif" id="preimg0" width="9" height="9"><span preid="0" style="margin-bottom: 0pt;" id="precollapse0"> Collapse</span></div><pre style="margin-top: 0pt;" id="pre0" lang="cs"><span class="code-keyword">private</span> MyControlLibrary.TabCtlEx userControl11;
    TabPageEx tabPage1;
    TabPageEx tabPage2;
    TabPageEx tabPage3;

<span class="code-keyword">private</span> TabPageEx tabPage4;
    <span class="code-keyword">this</span>.userControl11 = <span class="code-keyword">new</span> MyControlLibrary.TabCtlEx();
    <span class="code-keyword">this</span>.tabPage1 = <span class="code-keyword">new</span> MyControlLibrary.TabPageEx(<span class="code-keyword">this</span>.components);
    <span class="code-keyword">this</span>.tabPage2 = <span class="code-keyword">new</span> MyControlLibrary.TabPageEx(<span class="code-keyword">this</span>.components);
    <span class="code-keyword">this</span>.tabPage3 = <span class="code-keyword">new</span> MyControlLibrary.TabPageEx(<span class="code-keyword">this</span>.components);
    <span class="code-keyword">this</span>.tabPage4 = <span class="code-keyword">new</span> MyControlLibrary.TabPageEx(<span class="code-keyword">this</span>.components);
    <span class="code-keyword">this</span>.Controls.Add(<span class="code-keyword">this</span>. userControl11);</pre>

<h3>Drawing the Close Button on Each Tab Header</h3>

<p>This requires you to override the existing <code>OnDrawItem()</code> function in the .NET tab control.</p>

<div class="SmallText" id="premain1" style="width: 100%; cursor: pointer;"><img preid="1" src="firefoxtabcontrol.aspx_files/minus.gif" id="preimg1" width="9" height="9"><span preid="1" style="margin-bottom: 0pt;" id="precollapse1"> Collapse</span></div><pre style="margin-top: 0pt;" id="pre1" lang="cs"><span class="code-SummaryComment">///</span><span class="code-comment"> <span class="code-SummaryComment">&lt;</span><span class="code-SummaryComment">summary</span><span class="code-SummaryComment">&gt;</span></span>
<span class="code-SummaryComment">///</span><span class="code-comment"> override to draw the close button</span>
<span class="code-SummaryComment">///</span><span class="code-comment"> <span class="code-SummaryComment">&lt;</span><span class="code-SummaryComment">/</span><span class="code-SummaryComment">summary</span><span class="code-SummaryComment">&gt;</span></span>
<span class="code-SummaryComment">///</span><span class="code-comment"> <span class="code-SummaryComment">&lt;</span><span class="code-SummaryComment">param</span> <span class="code-SummaryComment">name="e"</span><span class="code-SummaryComment">&gt;</span><span class="code-SummaryComment">&lt;</span><span class="code-SummaryComment">/</span><span class="code-SummaryComment">param</span><span class="code-SummaryComment">&gt;</span></span>
<span class="code-keyword">protected</span> <span class="code-keyword">override</span> <span class="code-keyword">void</span> OnDrawItem(DrawItemEventArgs e)
{
    RectangleF tabTextArea = RectangleF.Empty;
    <span class="code-keyword">for</span>(<span class="code-keyword">int</span> nIndex = <span class="code-digit">0</span> ; nIndex &lt; <span class="code-keyword">this</span>.TabCount ; nIndex++)
    {
        <span class="code-keyword">if</span>( nIndex != <span class="code-keyword">this</span>.SelectedIndex )
        {
            <span class="code-comment">/*</span><span class="code-comment">if not active draw ,inactive close button*/</span>
            tabTextArea = (RectangleF)<span class="code-keyword">this</span>.GetTabRect(nIndex);
            <span class="code-keyword">using</span>(Bitmap bmp = <span class="code-keyword">new</span> Bitmap(GetContentFromResource(
                <span class="code-string">"</span><span class="code-string">closeinactive.bmp"</span>)))
            {
                e.Graphics.DrawImage(bmp,
                    tabTextArea.X+tabTextArea.Width -16, <span class="code-digit">5</span>, <span class="code-digit">13</span>, <span class="code-digit">13</span>);
            }
        }
        <span class="code-keyword">else</span>
        {
            tabTextArea = (RectangleF)<span class="code-keyword">this</span>.GetTabRect(nIndex);
            LinearGradientBrush br = <span class="code-keyword">new</span> LinearGradientBrush(tabTextArea,
                SystemColors.ControlLightLight,SystemColors.Control,
                LinearGradientMode.Vertical);
            e.Graphics.FillRectangle(br,tabTextArea);

            <span class="code-comment">/*</span><span class="code-comment">if active draw ,inactive close button*/</span>
            <span class="code-keyword">using</span>(Bitmap bmp = <span class="code-keyword">new</span> Bitmap(
                GetContentFromResource(<span class="code-string">"</span><span class="code-string">close.bmp"</span>)))
            {
                e.Graphics.DrawImage(bmp,
                    tabTextArea.X+tabTextArea.Width -16, <span class="code-digit">5</span>, <span class="code-digit">13</span>, <span class="code-digit">13</span>);
            }
            br.Dispose();
        }
        <span class="code-keyword">string</span> str = <span class="code-keyword">this</span>.TabPages[nIndex].Text;
        StringFormat stringFormat = <span class="code-keyword">new</span> StringFormat();f
        stringFormat.Alignment = StringAlignment.Center; 
        <span class="code-keyword">using</span>(SolidBrush brush = <span class="code-keyword">new</span> SolidBrush(
            <span class="code-keyword">this</span>.TabPages[nIndex].ForeColor))
        {
            <span class="code-comment">/*</span><span class="code-comment">Draw the tab header text
            e.Graphics.DrawString(str,this.Font, brush,
            tabTextArea,stringFormat);
        }
    }
}</span></pre>

<p>Here, the close button is actually the bitmap image drawn over each
tab header. So, in just giving the look and feel of a button used in
Firefox, three different bitmap images are used:</p>

<ul type="disc">
<li><em>closeinactive.bmp</em> </li>

<li><em>close.bmp</em> </li>

<li><em>onhover.bmp</em> </li>
</ul>

<p>These images are embedded with the control and extracted using
reflection. There is also a function used to get the embedded image
resource. This function returns the stream and creates an image by
passing the stream to a bitmap class, as described above. </p>

<div class="SmallText" id="premain2" style="width: 100%; cursor: pointer;"><img preid="2" src="firefoxtabcontrol.aspx_files/minus.gif" id="preimg2" width="9" height="9"><span preid="2" style="margin-bottom: 0pt;" id="precollapse2"> Collapse</span></div><pre style="margin-top: 0pt;" id="pre2" lang="cs"><span class="code-SummaryComment">///</span><span class="code-comment"> <span class="code-SummaryComment">&lt;</span><span class="code-SummaryComment">summary</span><span class="code-SummaryComment">&gt;</span></span>
<span class="code-SummaryComment">///</span><span class="code-comment"> Get the stream of the embedded bitmap image</span>
<span class="code-SummaryComment">///</span><span class="code-comment"> <span class="code-SummaryComment">&lt;</span><span class="code-SummaryComment">/</span><span class="code-SummaryComment">summary</span><span class="code-SummaryComment">&gt;</span></span>
<span class="code-SummaryComment">///</span><span class="code-comment"> <span class="code-SummaryComment">&lt;</span><span class="code-SummaryComment">param</span> <span class="code-SummaryComment">name="filename"</span><span class="code-SummaryComment">&gt;</span><span class="code-SummaryComment">&lt;</span><span class="code-SummaryComment">/</span><span class="code-SummaryComment">param</span><span class="code-SummaryComment">&gt;</span></span>
<span class="code-SummaryComment">///</span><span class="code-comment"> <span class="code-SummaryComment">&lt;</span><span class="code-SummaryComment">returns</span><span class="code-SummaryComment">&gt;</span><span class="code-SummaryComment">&lt;</span><span class="code-SummaryComment">/</span><span class="code-SummaryComment">returns</span><span class="code-SummaryComment">&gt;</span></span>
<span class="code-keyword">private</span> Stream GetContentFromResource(<span class="code-keyword">string</span> filename)
{
    Assembly asm = Assembly.GetExecutingAssembly();
    Stream stream =asm.GetManifestResourceStream(
        <span class="code-string">"</span><span class="code-string">MyControlLibrary."</span>+filename);
    <span class="code-keyword">return</span> stream;
}</pre>

<p>Firefox asks the user to confirm whether he wants to close the tab
page or not. I like to have the same functionality for my control,
since sometimes the user may press the close button accidentally and
doesn't want to lose the changes done. This is accomplished by setting
the Boolean property.</p>

<div class="SmallText" id="premain3" style="width: 100%; cursor: pointer;"><img preid="3" src="firefoxtabcontrol.aspx_files/minus.gif" id="preimg3" width="9" height="9"><span preid="3" style="margin-bottom: 0pt;" id="precollapse3"> Collapse</span></div><pre style="margin-top: 0pt;" id="pre3" lang="cs"><span class="code-keyword">private</span> <span class="code-keyword">bool</span> confirmOnClose = <span class="code-keyword">true</span>;
<span class="code-keyword">public</span> <span class="code-keyword">bool</span> ConfirmOnClose
{
    <span class="code-keyword">get</span>
    {
        <span class="code-keyword">return</span> <span class="code-keyword">this</span>.confirmOnClose;
    }
    <span class="code-keyword">set</span>
    {
        <span class="code-keyword">this</span>.confirmOnClose = value;
    }
}</pre>

<h3>Property</h3>

<p><code>ConfirmOnClose</code> confirms with a message box before
closing the tab page. Here is the code to check if the clicked area is
inside the bitmap rectangle or not. </p>

<div class="SmallText" id="premain4" style="width: 100%; cursor: pointer;"><img preid="4" src="firefoxtabcontrol.aspx_files/minus.gif" id="preimg4" width="9" height="9"><span preid="4" style="margin-bottom: 0pt;" id="precollapse4"> Collapse</span></div><pre style="margin-top: 0pt;" id="pre4" lang="cs"><span class="code-keyword">protected</span> <span class="code-keyword">override</span> <span class="code-keyword">void</span> OnMouseDown(MouseEventArgs e)
{
    RectangleF tabTextArea = (RectangleF)<span class="code-keyword">this</span>.GetTabRect(SelectedIndex);
    tabTextArea = 
        <span class="code-keyword">new</span> RectangleF(tabTextArea.X+tabTextArea.Width -16,<span class="code-digit">5</span>,<span class="code-digit">13</span>,<span class="code-digit">13</span>);
    Point pt = <span class="code-keyword">new</span> Point(e.X,e.Y);
    <span class="code-keyword">if</span>(tabTextArea.Contains(pt))
    {
        <span class="code-keyword">if</span>(confirmOnClose)
        {
            <span class="code-keyword">if</span>(MessageBox.Show(<span class="code-string">"</span><span class="code-string">You are about to close "</span>+
                <span class="code-keyword">this</span>.TabPages[SelectedIndex].Text.TrimEnd()+
                <span class="code-string">"</span><span class="code-string"> tab. Are you sure you want to continue?"</span>,<span class="code-string">"</span><span class="code-string">Confirm close"</span>,
                MessageBoxButtons.YesNo) == DialogResult.No)
            <span class="code-keyword">return</span>;
        }
        <span class="code-comment">//</span><span class="code-comment">Fire Event to Client</span>
        <span class="code-keyword">if</span>(OnClose != <span class="code-keyword">null</span>)
        {
            OnClose(<span class="code-keyword">this</span>,<span class="code-keyword">new</span> CloseEventArgs(SelectedIndex));
        }
    }
}</pre>

<p>Whenever the close button on the tab header is pressed, the control will fire an <code>OnClose()</code>
event to the client with the clicked tab index as the argument. This
will give some more flexibility to the client to do something before
closing the tab. </p>

<h2>Conclusion</h2>

<p>It's just yet another tab control that provides some flexibility and
an improved user interface. I found this functionality very useful in
some scenarios. Feedbacks are welcome!</p>

<h2>History</h2>

<p>Updated with menu button functionality. The above description is
just for adding the close button, but the article source code contains
the actual implementation for both the close button and the menu
button. The major advantage with this control is that menu item
functionality is applied to each tab page instead of tab control. In
other words, we can have different menu items for different tab pages. </p>

<p>If there is no menu attached with any of the tab pages, it won't
display the menu button. The below picture shows that tabPage3 doesn't
have a menu attached and so doesn't display the Menu button for that
tab page only.</p>

<p><img alt="Screenshot - image004.jpg" src="firefoxtabcontrol.aspx_files/image004.jpg" width="640" height="306"></p>

<p>The actual code for attaching the menu item is: </p>

<div class="SmallText" id="premain5" style="width: 100%; cursor: pointer;"><img preid="5" src="firefoxtabcontrol.aspx_files/minus.gif" id="preimg5" width="9" height="9"><span preid="5" style="margin-bottom: 0pt;" id="precollapse5"> Collapse</span></div><pre style="margin-top: 0pt;" id="pre5" lang="cs"><span class="code-keyword">this</span>.tabPage1.Menu
    = contextMenuStrip1;
………
<span class="code-keyword">this</span>.tabPage2.Menu
    = contextMenuStrip1;
………
<span class="code-keyword">this</span>.tabPage3.Menu
    = contextMenuStrip1;
………
<span class="code-keyword">this</span>.tabPage4.Menu
    = contextMenuStrip1;</pre>

<p>Either you can assign the same menu item or a different menu item for each tab page. </p>

<h2>History</h2>

<ul>
<li>16 August, 2007 -- Original version posted </li>

<li>28 August, 2007 -- Article and download updated </li>
<li>24 June, 2008 -- source updated
</li></ul>



<!-- Article Ends -->


	<!-- Main Page Contents End -->
	
	</div>
	
	
	<form name="aspnetForm" method="post" action="firefoxtabcontrol.aspx" id="aspnetForm" style="margin: 0pt; padding: 0pt;">
		<div>
		<input name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTEwMDUyNjYzMjhkZE0ThEdxNtEaqzbkI/Q/APacQ6oO" type="hidden">
		</div>
		

	
	<h2>License</h2>
	<div id="ctl00_LicenseTerms"><p>This article, along with any associated source code and files, is licensed under <a href="http://www.codeproject.com/info/cpol10.aspx">The Code Project Open License (CPOL)</a></p></div>
	
	<h2>About the Author</h2>
	
			
            
<table border="0" cellpadding="0" cellspacing="5" width="100%">
<tbody><tr valign="top">
<td id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_memberPhotoTable" style="width: 155px;" valign="top">
	<b><a id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_memberProfileLink" href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=168649">vijayaprasen</a></b><br><br>
	<center><img id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_memberPhoto" src="firefoxtabcontrol.aspx_files/ABA4E23F-E646-40BD-B59D-7475C7C8B086.jpg" style="border-width: 0px;"></center><br>
	<span id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_memberType" class="SmallText"></span>
		
</td>
		
<td>
	worst fellow working as a consultant in a Telecom company (USA)<br>knows little bit on C,C++ and C# with 5+ years of experience.<br>	

	<table>
	<tbody><tr id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_jobTitleRow">
			<td class="SmallText" nowrap="nowrap">Occupation: </td>
			<td width="100%"><span id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_memberJobTitle" class="SmallText">Software Developer (Senior)</span></td>
		</tr>
		

	

	<tr id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_locationRow">
			<td class="SmallText">Location: </td>
			<td width="100%"><span id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_memberLocation" class="SmallText"><img src="firefoxtabcontrol.aspx_files/US.gif" alt="United States" width="16" height="11"> United States</span></td>
		</tr>
		
	</tbody></table>
	
</td>
</tr>
</tbody></table>

			<br>
		
	
	<table border="0" cellpadding="0" cellspacing="0" width="100%">	
	<tbody><tr valign="top">			
		<td style="width: 100%;">
			<h2>Other popular Tabs &amp; Property Pages articles:</h2><ul><li><a href="http://www.codeproject.com/KB/tabs/tabbingframework.aspx">Custom Tab Controls, Tabbed Frame and Tabbed MDI</a><div class="SmallText">An
extensible framework for creating customized tabs in ATL/WTL, with a
VS.NET-like tab control implementation, tabbed frames, tabbed MDI, and
more.</div></li><li><a href="http://www.codeproject.com/KB/tabs/treepropsheet.aspx">CTreePropSheet - A Netscape/Visual Studio .NET like Preferences Dialog</a><div class="SmallText">This
framework introduces a property sheet, based on the original Windows
property sheet (derived from CPropertySheet) which uses a tree control
to browse the pages instead of a tab control</div></li><li><a href="http://www.codeproject.com/KB/tabs/customizingcollectiondata.aspx">Customized display of collection data in a PropertyGrid</a><div class="SmallText">The PropertyGrid is widely used to display an object's properties and values.</div></li><li><a href="http://www.codeproject.com/KB/tabs/saprefs.aspx">SAPrefs - Netscape-like Preferences Dialog</a><div class="SmallText">A base class for a prefereneces dialog, similar to that used in Netscape</div></li><li><a href="http://www.codeproject.com/KB/tabs/TreePropSheetEx.aspx">CTreePropSheetEx – an extended version of CTreePropSheet</a><div class="SmallText">CTreePropSheetEx
is an extension of CTreePropSheet offering new features such as
resizing, skipping empty pages, and new property frames such as Office
2003 option sheet.</div></li></ul>
		</td>
		<td>
			<script type="text/javascript">document.write(unescape("%3ca%20href%3d%22http%3a%2f%2fwww.codeproject.com%2fRedir.aspx%3fadid%3d7674%26way%3dban%22%20target%3d%22_blank%22%20rel%3d%22nofollow%22%3e%3cimg%20src%3d%22http%3a%2f%2fwww.codeproject.com%2fscript%2fAdm%2fServeImg.aspx%3fFile%3d%252fscript%252fAdm%252fimages%252f20082-300x250.png%26C%3dFalse%26adid%3d7674%22%20alt%3d%22%22%20border%3d%220%22%20width%3d%22300%22%20height%3d%22250%22%3e%3c%2fa%3e"));</script><a href="http://www.codeproject.com/Redir.aspx?adid=7674&amp;way=ban" target="_blank" rel="nofollow"><img src="firefoxtabcontrol.aspx_files/ServeImg_003.htm" alt="" border="0" width="300" height="250"></a>
		</td>
	</tr>
	</tbody></table>

	<div id="ctl00_AddTo_AddTo" style="margin: 10px;">
<script language="JavaScript" type="text/javascript">
var socialLinks = new social();
socialLinks.addtoMethod=1;
socialLinks.DrawLinks("socialLinks", document.location.href, escape(document.title), 100, 0, "SmallText Bold", "AddTo");
</script><span class="SmallText Bold">Add this article to: </span> <a class="AddTo" title="Add this page to Digg" onclick="return socialLinks.addto(0);" href="#"><img src="firefoxtabcontrol.aspx_files/AddTo_Digg.png" align="absmiddle" border="0" width="16" height="16"></a>  <a class="AddTo" title="Add this page to Del.icio.us" onclick="return socialLinks.addto(1);" href="#"><img src="firefoxtabcontrol.aspx_files/AddTo_Delicious.png" align="absmiddle" border="0" width="16" height="16"></a>  <a class="AddTo" title="Add this page to Google" onclick="return socialLinks.addto(2);" href="#"><img src="firefoxtabcontrol.aspx_files/AddTo_Google.png" align="absmiddle" border="0" width="16" height="16"></a>  <a class="AddTo" title="Add this page to Windows Live" onclick="return socialLinks.addto(3);" href="#"><img src="firefoxtabcontrol.aspx_files/AddTo_Live.png" align="absmiddle" border="0" width="16" height="16"></a>  <a class="AddTo" title="Add this page to Yahoo! MyWeb" onclick="return socialLinks.addto(4);" href="#"><img src="firefoxtabcontrol.aspx_files/AddTo_Yahoo.png" align="absmiddle" border="0" width="16" height="16"></a>  <a class="AddTo" title="Add this page to Technorati" onclick="return socialLinks.addto(5);" href="#"><img src="firefoxtabcontrol.aspx_files/AddTo_Technorati.png" align="absmiddle" border="0" width="16" height="16"></a>  <a class="AddTo" title="Add this page to Blink" onclick="return socialLinks.addto(6);" href="#"><img src="firefoxtabcontrol.aspx_files/AddTo_Blink.png" align="absmiddle" border="0" width="16" height="16"></a>  <a class="AddTo" title="Add this page to Facebook" onclick="return socialLinks.addto(7);" href="#"><img src="firefoxtabcontrol.aspx_files/AddTo_Facebook.png" align="absmiddle" border="0" width="16" height="16"></a>  <a class="AddTo" title="Add this page to Furl" onclick="return socialLinks.addto(8);" href="#"><img src="firefoxtabcontrol.aspx_files/AddTo_Furl.png" align="absmiddle" border="0" width="16" height="16"></a>  <a class="AddTo" title="Add this page to Simpy" onclick="return socialLinks.addto(9);" href="#"><img src="firefoxtabcontrol.aspx_files/AddTo_Simpy.png" align="absmiddle" border="0" width="16" height="16"></a>  <a class="AddTo" title="Add this page to Reddit" onclick="return socialLinks.addto(10);" href="#"><img src="firefoxtabcontrol.aspx_files/AddTo_Reddit.png" align="absmiddle" border="0" width="16" height="16"></a>  <a class="AddTo" title="Add this page to Newsvine" onclick="return socialLinks.addto(11);" href="#"><img src="firefoxtabcontrol.aspx_files/AddTo_Newsvine.png" align="absmiddle" border="0" width="16" height="16"></a>  <a class="AddTo" title="Add this page to Stumbleupon" onclick="return socialLinks.addto(12);" href="#"><img src="firefoxtabcontrol.aspx_files/AddTo_stumbleupon.png" align="absmiddle" border="0" width="16" height="16"></a>  <a class="AddTo" title="Add this page to Mr. Wong" onclick="return socialLinks.addto(13);" href="#"><img src="firefoxtabcontrol.aspx_files/AddTo_MrWong.png" align="absmiddle" border="0" width="16" height="16"></a>  
</div>
	
	<table id="ctl00_RateArticleRow" class="RatingBar" border="0" cellpadding="0" cellspacing="0" width="100%">
			<tbody><tr>
				<td><a href="#_top">Article Top</a></td>
				<td align="right">            
<table cellpadding="0" cellspacing="0" width="100%"><tbody><tr>

	<td id="ctl00_RateArticle_VoteResultDiv" align="right" width="100%" nowrap="nowrap">
		<span id="voteRes"></span>
		<img id="loaderImg" alt="loading..." src="firefoxtabcontrol.aspx_files/ajax-loader.gif" style="display: none;" width="16" height="16"> 
	</td>
				
	
	<td id="voteTbl" style="white-space: nowrap;" class="SmallText" align="right">
	
		<table><tbody><tr>
		
		<td id="ctl00_RateArticle_RateText" style="padding-right: 5px; white-space: nowrap;"><i><b>Rate this Article for us!</b></i></td>
				
		<td id="ctl00_RateArticle_StartForm" align="right"><i>&nbsp;&nbsp;Poor</i></td>
				
		<td id="ctl00_RateArticle_VoteFormDiv" style="white-space: nowrap;" align="left">
		<table id="ctl00_RateArticle_VoteRBL" border="0">
					<tbody><tr>
						<td><input id="ctl00_RateArticle_VoteRBL_0" name="ctl00$RateArticle$VoteRBL" value="1" type="radio"></td><td><input id="ctl00_RateArticle_VoteRBL_1" name="ctl00$RateArticle$VoteRBL" value="2" type="radio"></td><td><input id="ctl00_RateArticle_VoteRBL_2" name="ctl00$RateArticle$VoteRBL" value="3" type="radio"></td><td><input id="ctl00_RateArticle_VoteRBL_3" name="ctl00$RateArticle$VoteRBL" value="4" type="radio"></td><td><input id="ctl00_RateArticle_VoteRBL_4" name="ctl00$RateArticle$VoteRBL" value="5" type="radio"></td>
					</tr>
				</tbody></table> 
		</td>
				
		<td id="ctl00_RateArticle_EndForm" align="left" nowrap="nowrap"><i>Excellent</i>
			<input name="ctl00$RateArticle$SubmitRateBtn" value="Vote" onclick="return rateItem(20050,2);" id="ctl00_RateArticle_SubmitRateBtn" class="FormButton" type="submit"> 
		</td>
				
		<td><span id="ctl00_RateArticle_ErrorMessage"></span></td>
		</tr></tbody></table>
	</td>
</tr></tbody></table>



</td>
			</tr>
		</tbody></table>
		
	
		<div>

			<input name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWCAL0zreBAgLAlMXDBwLBlMXDBwLClMXDBwLDlMXDBwLElMXDBwLP+++tCwK5upDkC0eFt3Vcc51p6PwILH+lOm0XhtnF" type="hidden">
		</div></form>
	
	<div style="padding: 10px; overflow: hidden; text-align: center; white-space: nowrap;">
		<script type="text/javascript">document.write(unescape("%3ca%20href%3d%22http%3a%2f%2fwww.codeproject.com%2fRedir.aspx%3fadid%3d5303%26way%3dban%22%20target%3d%22_blank%22%20rel%3d%22nofollow%22%3e%3cimg%20src%3d%22http%3a%2f%2fwww.codeproject.com%2fscript%2fAdm%2fServeImg.aspx%3fFile%3d%252fscript%252fAdm%252fimages%252fIBMdeveloperWorks_468x60.gif%26C%3dFalse%26adid%3d5303%22%20alt%3d%22%22%20border%3d%220%22%20width%3d%22468%22%20height%3d%2260%22%3e%3c%2fa%3e"));</script><a href="http://www.codeproject.com/Redir.aspx?adid=5303&amp;way=ban" target="_blank" rel="nofollow"><img src="firefoxtabcontrol.aspx_files/ServeImg.htm" alt="" border="0" width="468" height="60"></a>
		<iframe src="firefoxtabcontrol.aspx_files/ServeLinks.htm" scrolling="no" width="300" frameborder="0" height="60"></iframe>					  
	</div>

	<a name="_comments"></a><!-- Forum Start -->
<div id="_MessageBoard" onclick="return SwitchMessage(event, null)">
	<table id="ForumTable" class="Frm_MainTable" cellpadding="0" cellspacing="0">
		<tbody><tr>
			<td><form action="/script/Forums/SetOptions.aspx?floc=%2fKB%2ftabs%2ffirefoxtabcontrol.aspx&amp;fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick" method="get" style="margin: 0pt; padding: 0pt;">
				<input name="fid" value="449196" type="hidden"><input name="currentQS" value="?floc=%2fKB%2ftabs%2ffirefoxtabcontrol.aspx&amp;fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick" type="hidden"><input name="floc" value="/KB/tabs/firefoxtabcontrol.aspx" type="hidden"><table border="0" cellpadding="3" cellspacing="0" width="100%">
					<tbody><tr class="Frm_HeaderRow1">
						<td style="white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/forum_faq.gif" alt="FAQ" align="middle" border="0" width="16" height="16">&nbsp;<a href="http://www.codeproject.com/script/Forums/FAQ.aspx"><b>FAQ</b></a>&nbsp;</td><td style="white-space: nowrap; text-align: right;">Noise Tolerance<select size="1" class="Frm_DropDown" name="noise">
							<option value="1">Very High</option><option value="2">High</option><option selected="selected" value="3">Medium</option><option value="4">Low</option><option value="5">Very Low</option>
						</select></td><td colspan="2" style="white-space: nowrap; text-align: right;"><img src="firefoxtabcontrol.aspx_files/forum_search.gif" alt="Search" align="top" border="0" width="16" height="15">&nbsp;<a href="http://www.codeproject.com/script/Forums/Search.aspx?fid=449196">Search Messages</a>&nbsp;</td><td style="text-align: right;"><input value="Set Options" name="SetOpt" class="Frm_Button" type="submit"></td>
					</tr><tr class="Frm_HeaderRow2">
						<td style="width: 100%;">&nbsp;</td><td style="white-space: nowrap; text-align: right;">Layout<select size="1" class="Frm_DropDown" name="view">
							<option selected="selected" value="Quick">Normal</option><option value="Topic">Expand Root Messages</option><option value="Expanded">Expand All Messages</option><option value="Thread">Thread View</option><option value="Normal">No Javascript (slow)</option><option value="Preview">No Javascript Preview</option>
						</select>&nbsp;&nbsp;</td><td style="white-space: nowrap;">Per page<select size="1" class="Frm_DropDown" name="mpp">
							<option value="10">10</option><option selected="selected" value="25">25</option><option value="50">50</option>
						</select>&nbsp;&nbsp;</td><td colspan="2">&nbsp;</td>
					</tr>
				</tbody></table>
			</form></td>
		</tr><tr>
			<td><a name="xx0xx"></a><table border="0" cellpadding="2" cellspacing="0" width="100%">
				<tbody><tr class="Frm_NavigationBar">
					<td><img src="firefoxtabcontrol.aspx_files/forum_newmsg.gif" alt="new" align="top" border="0" width="16" height="16"><a href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;floc=/KB/tabs/firefoxtabcontrol.aspx" class="Frm_HL" name="Frm_HoverNL" title="Create a new message thread" target="_top"><b>New Message</b></a></td><td>Msgs 1 to 25 of 55 (Total in Forum: 55) (<a href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick">Refresh</a>)</td><td style="text-align: right; white-space: nowrap;"><span class="Frm_HL">First</span><span class="Frm_HL">Prev</span><a class="Frm_HL" name="Frm_HoverNL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;fr=26#xx0xx">Next</a></td>
				</tr>
			</tbody></table></td>
		</tr><tr>
			<td><table class="Frm_MsgTable" border="0" cellpadding="0" cellspacing="0" width="100%">
				<tbody><tr>
					<td><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="5"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd Rt HdUnSel" id="F2768066_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="16"><a name="xx2768066xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2768066" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2768066#xx2768066xx">Help With Events</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=5610454">AnaliaIbargoyen</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">12:18 16 Oct '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2768066_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 16px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">I
am currently overriding OnDrawItem in a class TabControlExtension :
TabControl. Everything compiles fine, and I have changed my tabSet to
be a TabControlExtension, but at runtime the tabs look the same as
before, and when debugging and placing a breakpoint at override
OnDrawItem, this event is never reached. Is this the wrong event or
wrong class?<br>Thanks in advance for your help <img src="firefoxtabcontrol.aspx_files/smiley_cool.gif" alt="Cool" align="top"><br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2768066&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2768066&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2768066" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2768066" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2768066&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2768066" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(5610454,2768066,false,"","","");
											</script>Rate this message: <a href="#xx2768066xx" onclick="RateMsg(5610454, 2768066,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2768066xx" title="vote this message a 1" onclick="RateMsg(5610454, 2768066, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2768066xx" title="vote this message a 2" onclick="RateMsg(5610454, 2768066, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2768066xx" title="vote this message a 3" onclick="RateMsg(5610454, 2768066, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2768066xx" title="vote this message a 4" onclick="RateMsg(5610454, 2768066, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2768066xx" title="vote this message a 5" onclick="RateMsg(5610454, 2768066, 5,0)"><b>5</b></a> <a href="#xx2768066xx" onclick="RateMsg(5610454, 2768066,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd HdUnSel" id="F2801001_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="34"><a name="xx2801001xx"></a><img src="firefoxtabcontrol.aspx_files/msg_answer.gif" alt="Answer" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2801001" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2801001#xx2801001xx">Re: Help With Events</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=168649">vijayaprasen</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">16:36 10 Nov '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2801001_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 34px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">sorry for replying late...<br><br>you need to specify this in your control code. then only it will hit OnDrawItem<br><br>this.DrawMode = System.Windows.Forms.TabDrawMode.OwnerDrawFixed;<br><br>Regards<br>Prakash.S <br><br><div class="ForumSig">Prakash</div><br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2801001&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2801001&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2768066" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2801001" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2801001&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2801001" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(168649,2801001,false,"","","");
											</script>Rate this message: <a href="#xx2801001xx" onclick="RateMsg(168649, 2801001,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2801001xx" title="vote this message a 1" onclick="RateMsg(168649, 2801001, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2801001xx" title="vote this message a 2" onclick="RateMsg(168649, 2801001, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2801001xx" title="vote this message a 3" onclick="RateMsg(168649, 2801001, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2801001xx" title="vote this message a 4" onclick="RateMsg(168649, 2801001, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2801001xx" title="vote this message a 5" onclick="RateMsg(168649, 2801001, 5,0)"><b>5</b></a> <a href="#xx2801001xx" onclick="RateMsg(168649, 2801001,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgRtDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd Rt HdUnSel" id="F2660983_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="16"><a name="xx2660983xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2660983" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2660983#xx2660983xx">What type of event...</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=5110790">andryw</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">11:00 1 Aug '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2660983_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 16px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">that happened when the cursor clicks on another tab which is not the current tab.<br><br>Because we wanna know what is that another tab.<br><br>=)<br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2660983&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2660983&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2660983" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2660983" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2660983&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2660983" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(5110790,2660983,false,"","","");
											</script>Rate this message: <a href="#xx2660983xx" onclick="RateMsg(5110790, 2660983,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2660983xx" title="vote this message a 1" onclick="RateMsg(5110790, 2660983, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2660983xx" title="vote this message a 2" onclick="RateMsg(5110790, 2660983, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2660983xx" title="vote this message a 3" onclick="RateMsg(5110790, 2660983, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2660983xx" title="vote this message a 4" onclick="RateMsg(5110790, 2660983, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2660983xx" title="vote this message a 5" onclick="RateMsg(5110790, 2660983, 5,0)"><b>5</b></a> <a href="#xx2660983xx" onclick="RateMsg(5110790, 2660983,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgRtDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd Rt HdUnSel" id="F2642733_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="16"><a name="xx2642733xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2642733" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2642733#xx2642733xx">plz help me</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=5205668">JKR007</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">6:05 18 Jul '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2642733_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 16px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">i am beginer, so plz help me to use this tabs in my project...<br>i am using vs2005, i got several errors...<br>anybody please help...<img src="firefoxtabcontrol.aspx_files/smiley_confused.gif" alt="Confused" align="top"><br><br>Thanks<br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2642733&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2642733&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2642733" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2642733" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2642733&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2642733" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(5205668,2642733,false,"","","");
											</script>Rate this message: <a href="#xx2642733xx" onclick="RateMsg(5205668, 2642733,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2642733xx" title="vote this message a 1" onclick="RateMsg(5205668, 2642733, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2642733xx" title="vote this message a 2" onclick="RateMsg(5205668, 2642733, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2642733xx" title="vote this message a 3" onclick="RateMsg(5205668, 2642733, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2642733xx" title="vote this message a 4" onclick="RateMsg(5205668, 2642733, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2642733xx" title="vote this message a 5" onclick="RateMsg(5205668, 2642733, 5,0)"><b>5</b></a> <a href="#xx2642733xx" onclick="RateMsg(5205668, 2642733,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd HdUnSel" id="F2642865_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="34"><a name="xx2642865xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2642865" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2642865#xx2642865xx">Re: plz help me</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=168649">vijayaprasen</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">7:54 18 Jul '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2642865_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 34px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">What kind of error ,you are getting?<br>send me the sample project to me ,if you have any to vijayaprasen@gmail.com <br><br><div class="ForumSig">Prakash</div><br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2642865&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2642865&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2642733" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2642865" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2642865&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2642865" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(168649,2642865,false,"","","");
											</script>Rate this message: <a href="#xx2642865xx" onclick="RateMsg(168649, 2642865,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2642865xx" title="vote this message a 1" onclick="RateMsg(168649, 2642865, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2642865xx" title="vote this message a 2" onclick="RateMsg(168649, 2642865, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2642865xx" title="vote this message a 3" onclick="RateMsg(168649, 2642865, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2642865xx" title="vote this message a 4" onclick="RateMsg(168649, 2642865, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2642865xx" title="vote this message a 5" onclick="RateMsg(168649, 2642865, 5,0)"><b>5</b></a> <a href="#xx2642865xx" onclick="RateMsg(168649, 2642865,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgRtDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd Rt HdUnSel" id="F2619334_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="16"><a name="xx2619334xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2619334" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2619334#xx2619334xx">set tab size</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=2351843">Member 2351843</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">5:42 1 Jul '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2619334_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 16px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">Hi<br><br>Cool item<br><br>Was playing around a bit, and found that a lot of space are put in front and after the text.<br><br>I have not been able to adjust this. <br><br>Any ideas?<br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2619334&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2619334&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2619334" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2619334" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2619334&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2619334" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(2351843,2619334,false,"","","");
											</script>Rate this message: <a href="#xx2619334xx" onclick="RateMsg(2351843, 2619334,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2619334xx" title="vote this message a 1" onclick="RateMsg(2351843, 2619334, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2619334xx" title="vote this message a 2" onclick="RateMsg(2351843, 2619334, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2619334xx" title="vote this message a 3" onclick="RateMsg(2351843, 2619334, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2619334xx" title="vote this message a 4" onclick="RateMsg(2351843, 2619334, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2619334xx" title="vote this message a 5" onclick="RateMsg(2351843, 2619334, 5,0)"><b>5</b></a> <a href="#xx2619334xx" onclick="RateMsg(2351843, 2619334,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd HdUnSel" id="F2619448_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="34"><a name="xx2619448xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2619448" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2619448#xx2619448xx">Re: set tab size</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=1311446">Ilíon</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">7:10 1 Jul '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2619448_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 34px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">The spaces allow for room on the tab to draw the buttons.  However, as coded, this padding can constantly grow.<br><br>In the TabPage code, replace the Text property with something like:<br><pre><br>public override string Text<br>{<br>	get {return base.Text;}<br>	set<br>	{<br>		if (value == null)<br>		{<br>			base.Text = "		";<br>		}<br>		else<br>			base.Text = " "+ value.Trim() +"             ";<br>		}<br>	}<br>}<br></pre><br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2619448&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2619448&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2619334" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2619448" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2619448&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2619448" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(1311446,2619448,false,"","","");
											</script>Rate this message: <a href="#xx2619448xx" onclick="RateMsg(1311446, 2619448,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2619448xx" title="vote this message a 1" onclick="RateMsg(1311446, 2619448, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2619448xx" title="vote this message a 2" onclick="RateMsg(1311446, 2619448, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2619448xx" title="vote this message a 3" onclick="RateMsg(1311446, 2619448, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2619448xx" title="vote this message a 4" onclick="RateMsg(1311446, 2619448, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2619448xx" title="vote this message a 5" onclick="RateMsg(1311446, 2619448, 5,0)"><b>5</b></a> <a href="#xx2619448xx" onclick="RateMsg(1311446, 2619448,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd HdUnSel" id="F2620757_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="52"><a name="xx2620757xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2620757" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2620757#xx2620757xx">Re: set tab size</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=2351843">Member 2351843</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">1:22 2 Jul '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2620757_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 52px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">thx Ilíon.<br><br>It works, but most to the right of the text, so I removed the statement that centers the text:<br><br>public class TabCtlEx : System.Windows.Forms.TabControl<br>{<br><br>  :<br>  :<br>  protected override void OnDrawItem(DrawItemEventArgs e)<br>  {<br>     :<br>     :<br>     //stringFormat.Alignment = StringAlignment.Center;  &lt;= Removed!<br><br><br>Then it is possible to adjust it exactly the way you want it (with some white space padding).<br><br>/Kim<br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2620757&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2620757&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2619334" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2620757" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2620757&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2620757" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(2351843,2620757,false,"","","");
											</script>Rate this message: <a href="#xx2620757xx" onclick="RateMsg(2351843, 2620757,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2620757xx" title="vote this message a 1" onclick="RateMsg(2351843, 2620757, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2620757xx" title="vote this message a 2" onclick="RateMsg(2351843, 2620757, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2620757xx" title="vote this message a 3" onclick="RateMsg(2351843, 2620757, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2620757xx" title="vote this message a 4" onclick="RateMsg(2351843, 2620757, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2620757xx" title="vote this message a 5" onclick="RateMsg(2351843, 2620757, 5,0)"><b>5</b></a> <a href="#xx2620757xx" onclick="RateMsg(2351843, 2620757,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd HdUnSel" id="F2621827_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="70"><a name="xx2621827xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2621827" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2621827#xx2621827xx">I'm sorry [modified]</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=1311446">Ilíon</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">13:18 2 Jul '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2621827_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 70px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2"><blockquote class="FQ"><div class="FQA">Member 2351843 wrote:</div>//stringFormat.Alignment = StringAlignment.Center; &lt;= Removed!</blockquote><br>I'm sorry, I forgot to mention that!<br><br>Early on, I'd changed that line to:<br><code>stringFormat.Alignment = System.Drawing.StringAlignment.Near;</code><br>(which would actually be the default value)<br><br><br>I've
ended up doing a complete rewrite of the control. Early on, before I
realized just what-all I'd be changing, I had thought to try to get my
version of the code to Vijayaprasen and let him decide whether he
wanted to incorporate any of my changes into his project and article.<br><br>But, considering that I've essentially made a whole new control, I'll probably submit an article.<br><br>Some features of my version of this control:<br>1) TabPageControl - Allow or disallow any TabPages to be closed.<br>2) TabPageControl - Allow or disallow right-click ContextMenus on any TabPage tabs/headers<br>3) TabPageControl - Require or not confirmation before closing any TabPage<br><br>4) TabPages - Allow or disallow individual TabPage to be closed.<br>5) TabPages - Allow or disallow right-click ContextMenus on individual TabPage.<br>6) TabPages - Require or not confirmation before closing individual TabPage<br>7) TabPages - Show on not the Close Button on individual TabPage<br>8) TabPages - Show on not the Menu Button on individual TabPage<br>9) TabPages - Default Menu does not have to be assigned to individual TabPage; <br>9a)
TabPages - ContextMenu assigned to individual TabPage is merged into
default Menu (when the Menu is displayed for that TabPage)<br><br>10) Default Menu -- MenuItems may be enabled or disabled<br>10a) MenuItem - Open New TabPage<br>10b) MenuItem - "Rename" selected TabPage (change taex on Tab)<br>10c) MenuItem - <b>Reorder TabPages</b><br>10d) MenuItem - Close individual TabPage (selected page)<br>10e) MenuItem - Close individual TabPage (from menu list)<br>10f) MenuItem -  Close all pages except selected<br>10f) MenuItem -  Close all pages (except those which are not allowed to be closed)<br><br>11) Raise event telling client code just what was changed (Add, Remove, Rename, Reorder) <br><br><div class="ForumMod">modified on Wednesday, July 2, 2008 1:37 PM</div><br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2621827&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2621827&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2619334" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2621827" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2621827&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2621827" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(1311446,2621827,false,"","","");
											</script>Rate this message: <a href="#xx2621827xx" onclick="RateMsg(1311446, 2621827,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2621827xx" title="vote this message a 1" onclick="RateMsg(1311446, 2621827, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2621827xx" title="vote this message a 2" onclick="RateMsg(1311446, 2621827, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2621827xx" title="vote this message a 3" onclick="RateMsg(1311446, 2621827, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2621827xx" title="vote this message a 4" onclick="RateMsg(1311446, 2621827, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2621827xx" title="vote this message a 5" onclick="RateMsg(1311446, 2621827, 5,0)"><b>5</b></a> <a href="#xx2621827xx" onclick="RateMsg(1311446, 2621827,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd HdUnSel" id="F2620839_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="52"><a name="xx2620839xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2620839" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2620839#xx2620839xx">Re: set tab size</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=2351843">Member 2351843</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">2:32 2 Jul '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2620839_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 52px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">Forgot -<br>also modified:<br><br>      private bool CanDrawMenuButton(int nIndex)<br>      {<br>          if (nIndex &lt; 0)          // &lt;= added<br>              return false;        // &lt;= added<br><br>          if(((TabPageEx)this.TabPages[nIndex]).Menu != null)<br>            return true;<br>          return false;<br>      }<br><br>to allow all tabs to be closed.<br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2620839&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2620839&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2619334" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2620839" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2620839&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2620839" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(2351843,2620839,false,"","","");
											</script>Rate this message: <a href="#xx2620839xx" onclick="RateMsg(2351843, 2620839,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2620839xx" title="vote this message a 1" onclick="RateMsg(2351843, 2620839, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2620839xx" title="vote this message a 2" onclick="RateMsg(2351843, 2620839, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2620839xx" title="vote this message a 3" onclick="RateMsg(2351843, 2620839, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2620839xx" title="vote this message a 4" onclick="RateMsg(2351843, 2620839, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2620839xx" title="vote this message a 5" onclick="RateMsg(2351843, 2620839, 5,0)"><b>5</b></a> <a href="#xx2620839xx" onclick="RateMsg(2351843, 2620839,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd HdUnSel" id="F2656667_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="34"><a name="xx2656667xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2656667" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2656667#xx2656667xx">Re: set tab size</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=1311446">Ilíon</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">14:59 29 Jul '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2656667_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 34px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">You might be interested in my version of the control (or some of the ideas in it): <a href="http://www.codeproject.com/KB/tabs/TdhTabCtl.aspx">TdhTabCtl</a>[<a href="http://www.codeproject.com/KB/tabs/TdhTabCtl.aspx" target="_blank" title="New Window">^</a>]<br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2656667&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2656667&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2619334" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2656667" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2656667&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2656667" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(1311446,2656667,false,"","","");
											</script>Rate this message: <a href="#xx2656667xx" onclick="RateMsg(1311446, 2656667,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2656667xx" title="vote this message a 1" onclick="RateMsg(1311446, 2656667, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2656667xx" title="vote this message a 2" onclick="RateMsg(1311446, 2656667, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2656667xx" title="vote this message a 3" onclick="RateMsg(1311446, 2656667, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2656667xx" title="vote this message a 4" onclick="RateMsg(1311446, 2656667, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2656667xx" title="vote this message a 5" onclick="RateMsg(1311446, 2656667, 5,0)"><b>5</b></a> <a href="#xx2656667xx" onclick="RateMsg(1311446, 2656667,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd HdUnSel" id="F2657088_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="52"><a name="xx2657088xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2657088" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2657088#xx2657088xx">Re: set tab size</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=2351843">Member 2351843</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">1:37 30 Jul '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2657088_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 52px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">Thx - looking good. Ill try it out one of these days. <img src="firefoxtabcontrol.aspx_files/smiley_smile.gif" alt="Smile" align="top"><br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2657088&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2657088&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2619334" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2657088" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2657088&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2657088" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(2351843,2657088,false,"","","");
											</script>Rate this message: <a href="#xx2657088xx" onclick="RateMsg(2351843, 2657088,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2657088xx" title="vote this message a 1" onclick="RateMsg(2351843, 2657088, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2657088xx" title="vote this message a 2" onclick="RateMsg(2351843, 2657088, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2657088xx" title="vote this message a 3" onclick="RateMsg(2351843, 2657088, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2657088xx" title="vote this message a 4" onclick="RateMsg(2351843, 2657088, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2657088xx" title="vote this message a 5" onclick="RateMsg(2351843, 2657088, 5,0)"><b>5</b></a> <a href="#xx2657088xx" onclick="RateMsg(2351843, 2657088,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgRtDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd Rt HdUnSel" id="F2611649_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="16"><a name="xx2611649xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2611649" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2611649#xx2611649xx">HCI issue</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=4843375">Derek Bartram</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">7:17 25 Jun '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2611649_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 16px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">Is
making a new tab really necassery on every tab header. I thought
generally you only have one button for each piece of functionality; not
that this doesn't apply to things like close other tabs since even
though the functionality is similar it has a significant difference
(due to context).<br><br>Ps. My firefox tabs have never looked like
that; the scroll have been at either end (i.e. left scroll at left and
right scroll at right).<br><br>Pps. The design looks a little clunky as well; you could perhaps try styling it a little more cleanly.<br><br>Good article <img src="firefoxtabcontrol.aspx_files/smiley_smile.gif" alt="Smile" align="top"><br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2611649&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2611649&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2611649" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2611649" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2611649&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2611649" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(4843375,2611649,false,"","","");
											</script>Rate this message: <a href="#xx2611649xx" onclick="RateMsg(4843375, 2611649,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2611649xx" title="vote this message a 1" onclick="RateMsg(4843375, 2611649, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2611649xx" title="vote this message a 2" onclick="RateMsg(4843375, 2611649, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2611649xx" title="vote this message a 3" onclick="RateMsg(4843375, 2611649, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2611649xx" title="vote this message a 4" onclick="RateMsg(4843375, 2611649, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2611649xx" title="vote this message a 5" onclick="RateMsg(4843375, 2611649, 5,0)"><b>5</b></a> <a href="#xx2611649xx" onclick="RateMsg(4843375, 2611649,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd HdUnSel" id="F2616319_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="34"><a name="xx2616319xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2616319" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2616319#xx2616319xx">Re: HCI issue</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=168649">vijayaprasen</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">10:57 28 Jun '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2616319_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 34px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">Thanks for your time to read my article!!! <br><br><div class="ForumSig">Prakash</div><br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2616319&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2616319&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2611649" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2616319" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2616319&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2616319" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(168649,2616319,false,"","","");
											</script>Rate this message: <a href="#xx2616319xx" onclick="RateMsg(168649, 2616319,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2616319xx" title="vote this message a 1" onclick="RateMsg(168649, 2616319, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2616319xx" title="vote this message a 2" onclick="RateMsg(168649, 2616319, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2616319xx" title="vote this message a 3" onclick="RateMsg(168649, 2616319, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2616319xx" title="vote this message a 4" onclick="RateMsg(168649, 2616319, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2616319xx" title="vote this message a 5" onclick="RateMsg(168649, 2616319, 5,0)"><b>5</b></a> <a href="#xx2616319xx" onclick="RateMsg(168649, 2616319,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgRtDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd Rt HdUnSel" id="F2562295_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="16"><a name="xx2562295xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2562295" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2562295#xx2562295xx">Exception</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=5196689">gborges</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">16:11 20 May '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2562295_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 16px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">Hi all!!!<br><br>There is an exception on line 211 at TabCtrlEx.cs file<br><br>Unable to cast object of type 'System.Windows.Forms.TabPage' to type 'MyControlLibrary.TabPageEx'.<br><br>Using visual c# 2008.<br><br>Any suggestions in how to solve it?<br><br>Thank you. <br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2562295&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2562295&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2562295" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2562295" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2562295&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2562295" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(5196689,2562295,false,"","","");
											</script>Rate this message: <a href="#xx2562295xx" onclick="RateMsg(5196689, 2562295,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2562295xx" title="vote this message a 1" onclick="RateMsg(5196689, 2562295, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2562295xx" title="vote this message a 2" onclick="RateMsg(5196689, 2562295, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2562295xx" title="vote this message a 3" onclick="RateMsg(5196689, 2562295, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2562295xx" title="vote this message a 4" onclick="RateMsg(5196689, 2562295, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2562295xx" title="vote this message a 5" onclick="RateMsg(5196689, 2562295, 5,0)"><b>5</b></a> <a href="#xx2562295xx" onclick="RateMsg(5196689, 2562295,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd HdUnSel" id="F2562476_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="34"><a name="xx2562476xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2562476" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2562476#xx2562476xx">Re: Exception</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=168649">vijayaprasen</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">19:34 20 May '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2562476_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 34px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">Please
make the modification in your code from all TapPage class to TapPageEx.
That will solve the issue. i already pointed the same thing the code
snippet of the article<br>-Prakash.S <br><br><div class="ForumSig">Prakash</div><br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2562476&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2562476&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2562295" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2562476" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2562476&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2562476" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(168649,2562476,false,"","","");
											</script>Rate this message: <a href="#xx2562476xx" onclick="RateMsg(168649, 2562476,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2562476xx" title="vote this message a 1" onclick="RateMsg(168649, 2562476, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2562476xx" title="vote this message a 2" onclick="RateMsg(168649, 2562476, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2562476xx" title="vote this message a 3" onclick="RateMsg(168649, 2562476, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2562476xx" title="vote this message a 4" onclick="RateMsg(168649, 2562476, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2562476xx" title="vote this message a 5" onclick="RateMsg(168649, 2562476, 5,0)"><b>5</b></a> <a href="#xx2562476xx" onclick="RateMsg(168649, 2562476,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd LoVote HdUnSel" id="F2615207_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="34"><a name="xx2615207xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2615207" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2615207#xx2615207xx">Re: Exception; suggested solution [modified]</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=1311446">Ilíon</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">10:26 27 Jun '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2615207_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 34px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">First
off, I want to say that I think that Vijayaprasen's control/code is
pretty good. I certainly appreciate the work he put into it; I don't
think I could have come up with it.<br><br><blockquote class="FQ"><div class="FQA">gborges wrote:</div>There is an exception on line 211 at TabCtrlEx.cs file<br><br>Unable to cast object of type 'System.Windows.Forms.TabPage' to type 'MyControlLibrary.TabPageEx'.<br><br>Using visual c# 2008.</blockquote><br>I noticed the same thing, right away  <img src="firefoxtabcontrol.aspx_files/smiley_cry.gif" alt="Cry" align="top"> (I'm using VS2003).<br><br>My effort to correct this error has turned into some extensive modifications to the code.<br><br><blockquote class="FQ"><div class="FQA">gborges wrote:</div>Any suggestions in how to solve it?</blockquote><br>My
solution to the problem was to write a class inheriting from
[System.Windows.Forms.TabControl.TabPageCollection] and then in the
[TabCtlEx] class over-ride (use the 'new' modifier) the
[TabCtlEx.TabPages] property using this new class.<br><br>Also, it
wouldn't hurt to over-ride the [TabCtlEx.Controls] property, but this
doesn't seem to be strictly necessary for this particular problem.<br><br><br>Here is my suggested solution to this problem:<br><br><br>========= Over-ride [TabCtlEx.TabPages] Property ========<br><pre><br>private FireFoxTab.FireFoxTabPageCollection _TabPages = null;<br>[Category ("Misc")]<br>[Description ("The FireFoxTabPages in the FireFoxTabCtl.")]<br>public new FireFoxTab.FireFoxTabPageCollection TabPages<br>{<br>	get { return this._TabPages; }<br>}<br></pre><br>========= END Over-ride [TabCtlEx.TabPages] Property ========<br><br>========= new file [FireFoxTabPageCollection.cs] ========<br><pre><br>using System;<br>using System.ComponentModel;<br>using System.Collections;<br>using System.Diagnostics;<br>using System.Windows.Forms;<br><br>namespace FireFoxTab<br>{<br>	/// <summary><br>	/// Summary description for FireFoxTabPageCollection.<br>	/// </summary><br>	public class FireFoxTabPageCollection <br>		: System.Windows.Forms.TabControl.TabPageCollection<br>	{<br>		#region pseudo-[Component Designer generated instantiation of components]<br><br>		/// <summary><br>		/// Required designer variable.<br>		/// </summary><br>		private System.ComponentModel.Container components = null;<br><br>		#endregion <br> <br>		#region pseudo-[Component Designer generated code]<br>		/// <summary><br>		/// Required method for Designer support - do not modify<br>		/// the contents of this method with the code editor.<br>		/// </summary><br>		private void InitializeComponent()<br>		{<br>			components = new System.ComponentModel.Container();<br>		}<br>		#endregion<br> <br> <br>		#region Private Fields and Properties <br>		private FireFoxTab.FireFoxTabCtl _owner = null;<br>		#endregion <br> <br>		#region Class Constructor (and Dispose)<br>		// public FireFoxTabPageCollection(FireFoxTab.FireFoxTabCtl owner) <br>			: base((System.Windows.Forms.TabControl)owner)<br>		// <br>		// protected void Dispose( bool disposing )<br>		// <br>		public FireFoxTabPageCollection(FireFoxTab.FireFoxTabCtl owner) <br>			: base((System.Windows.Forms.TabControl)owner)<br>		{<br>			///<br>			/// Required for Windows.Forms Class Composition Designer support<br>			///<br>			InitializeComponent();<br><br>			//<br>			// TODO: Add any constructor code after InitializeComponent call<br>			//<br>			_owner = owner;<br>		}<br> <br> <br>		/// <summary><br>		/// Clean up any resources being used.<br>		/// </summary><br>		//protected override void Dispose( bool disposing )<br>		protected void Dispose( bool disposing )<br>		{<br>			if( disposing )<br>			{<br>				if(components != null)<br>				{<br>					components.Dispose();<br>				}<br>			}<br>			//base.Dispose( disposing );<br>		}<br>		#endregion <br> <br>		#region New/Override and Novel Properties<br>		// public new FireFoxTab.FireFoxTabPage this[int index]<br>		//<br>		// the .Item (.TabPage) indexer<br>		public new FireFoxTab.FireFoxTabPage this[int index]<br>		{<br>			get<br>			{<br>				int idx = 0;<br>				if (index &gt; 0)<br>				{<br>					idx = index;<br>				}<br>				if (idx &gt;= this.Count)<br>				{<br>					idx = this.Count - 1;<br>				}<br><br>				if (idx &lt; 0)<br>				{<br>					return null;<br>				}<br>				return (base[idx] as FireFoxTab.FireFoxTabPage);<br>			}<br>		}<br>		#endregion <br> <br>		#region New/Override and Novel Methods/Functions <br>		// public void Add(FireFoxTab.FireFoxTabPage ffTabPage)<br>		// public void AddRange(FireFoxTab.FireFoxTabPage[] ffTabPages)<br>		// <br>		// public bool Contains(FireFoxTab.FireFoxTabPage ffTabPage)<br>		// <br>		public void Add(FireFoxTab.FireFoxTabPage ffTabPage)<br>		{<br>			// Any special processing may be done here<br>			//<br>			base.Add(ffTabPage);<br>		}<br> <br>		public void AddRange(params FireFoxTab.FireFoxTabPage[] ffTabPages)<br>		{<br>			//base.AddRange(ffTabPages);<br>			foreach (FireFoxTab.FireFoxTabPage _ffTabPage in ffTabPages)<br>			{<br>				this.Add(_ffTabPage);<br>			}<br>		}<br> <br> <br>		public bool Contains(FireFoxTab.FireFoxTabPage ffTabPage)<br>		{<br>			return base.Contains(ffTabPage);<br>		}<br>		#endregion <br>	}<br>}<br></pre><br>========= END [FireFoxTabPageCollection.cs] ========<br>Edit:<br>If
you include that code straight into your project, it won't compile
because the name [FireFoxTab.FireFoxTabPage] will be undefined. As I
said, I've been modifying the original code; I changed the original
names of the namespace and classes.<br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2615207&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2615207&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2562295" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2615207" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2615207&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2615207" style="white-space: nowrap;">1.00/5 (1 vote) <script type="text/javascript">
												MsgVFrm(1311446,2615207,false,"","","");
											</script>Rate this message: <a href="#xx2615207xx" onclick="RateMsg(1311446, 2615207,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2615207xx" title="vote this message a 1" onclick="RateMsg(1311446, 2615207, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2615207xx" title="vote this message a 2" onclick="RateMsg(1311446, 2615207, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2615207xx" title="vote this message a 3" onclick="RateMsg(1311446, 2615207, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2615207xx" title="vote this message a 4" onclick="RateMsg(1311446, 2615207, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2615207xx" title="vote this message a 5" onclick="RateMsg(1311446, 2615207, 5,0)"><b>5</b></a> <a href="#xx2615207xx" onclick="RateMsg(1311446, 2615207,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgRtDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd Rt HdUnSel" id="F2504680_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="16"><a name="xx2504680xx"></a><img src="firefoxtabcontrol.aspx_files/msg_question.gif" alt="Question" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2504680" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2504680#xx2504680xx">Owner project</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=3901018">eusta</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">9:06 12 Apr '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2504680_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 16px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">Hello,  <img src="firefoxtabcontrol.aspx_files/smiley_smile.gif" alt="Smile" align="top"> <br><br>Sorry for my English  <img src="firefoxtabcontrol.aspx_files/smiley_shucks.gif" alt="Shucks" align="top"> <br><br>I am an Italian boy, and I would like to ask if using FireFox-like Tab Control in my draft or free trade, should quote as owner.<br><br>Thanks  <img src="firefoxtabcontrol.aspx_files/smiley_smile.gif" alt="Smile" align="top"> <br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2504680&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2504680&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2504680" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2504680" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2504680&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2504680" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(3901018,2504680,false,"","","");
											</script>Rate this message: <a href="#xx2504680xx" onclick="RateMsg(3901018, 2504680,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2504680xx" title="vote this message a 1" onclick="RateMsg(3901018, 2504680, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2504680xx" title="vote this message a 2" onclick="RateMsg(3901018, 2504680, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2504680xx" title="vote this message a 3" onclick="RateMsg(3901018, 2504680, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2504680xx" title="vote this message a 4" onclick="RateMsg(3901018, 2504680, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2504680xx" title="vote this message a 5" onclick="RateMsg(3901018, 2504680, 5,0)"><b>5</b></a> <a href="#xx2504680xx" onclick="RateMsg(3901018, 2504680,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd HdUnSel" id="F2505060_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="34"><a name="xx2505060xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2505060" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2505060#xx2505060xx">Re: Owner project</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=168649">vijayaprasen</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">20:17 12 Apr '08 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2505060_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 34px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">You can use it for your project but do specify the copyright information to my name <img src="firefoxtabcontrol.aspx_files/smiley_smile.gif" alt="Smile" align="top"> . Nothing more than that. <br><br><div class="ForumSig">Prakash</div><br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2505060&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2505060&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2504680" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2505060" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2505060&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2505060" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(168649,2505060,false,"","","");
											</script>Rate this message: <a href="#xx2505060xx" onclick="RateMsg(168649, 2505060,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2505060xx" title="vote this message a 1" onclick="RateMsg(168649, 2505060, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2505060xx" title="vote this message a 2" onclick="RateMsg(168649, 2505060, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2505060xx" title="vote this message a 3" onclick="RateMsg(168649, 2505060, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2505060xx" title="vote this message a 4" onclick="RateMsg(168649, 2505060, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2505060xx" title="vote this message a 5" onclick="RateMsg(168649, 2505060, 5,0)"><b>5</b></a> <a href="#xx2505060xx" onclick="RateMsg(168649, 2505060,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgRtDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd Rt HdUnSel" id="F2354829_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="16"><a name="xx2354829xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2354829" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2354829#xx2354829xx">Exception</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=3072835">Gnanadurai</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">8:09 12 Dec '07 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2354829_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 16px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">Hi,<br> Its cool but when i close the last Tab its getting exception <br><br>  <div class="ForumSig">C.Gnanadurai</div><br><br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2354829&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2354829&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2354829" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2354829" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2354829&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2354829" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(3072835,2354829,false,"","","");
											</script>Rate this message: <a href="#xx2354829xx" onclick="RateMsg(3072835, 2354829,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2354829xx" title="vote this message a 1" onclick="RateMsg(3072835, 2354829, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2354829xx" title="vote this message a 2" onclick="RateMsg(3072835, 2354829, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2354829xx" title="vote this message a 3" onclick="RateMsg(3072835, 2354829, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2354829xx" title="vote this message a 4" onclick="RateMsg(3072835, 2354829, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2354829xx" title="vote this message a 5" onclick="RateMsg(3072835, 2354829, 5,0)"><b>5</b></a> <a href="#xx2354829xx" onclick="RateMsg(3072835, 2354829,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd HdUnSel" id="F2368080_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="34"><a name="xx2368080xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2368080" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2368080#xx2368080xx">Re: Exception</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=168649">vijayaprasen</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">17:16 25 Dec '07 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2368080_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 34px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">Thanks for your comment!!<br>can you tell me ,what is the exception that you got..<br>As
per the design wise , user should always have at least one tab with the
control . i.e the close button not supposed to be there for the last
tab page..<br>can you give some specific information about the exception <br><br><div class="ForumSig">Prakash</div><br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2368080&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2368080&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2354829" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2368080" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2368080&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2368080" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(168649,2368080,false,"","","");
											</script>Rate this message: <a href="#xx2368080xx" onclick="RateMsg(168649, 2368080,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2368080xx" title="vote this message a 1" onclick="RateMsg(168649, 2368080, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2368080xx" title="vote this message a 2" onclick="RateMsg(168649, 2368080, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2368080xx" title="vote this message a 3" onclick="RateMsg(168649, 2368080, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2368080xx" title="vote this message a 4" onclick="RateMsg(168649, 2368080, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2368080xx" title="vote this message a 5" onclick="RateMsg(168649, 2368080, 5,0)"><b>5</b></a> <a href="#xx2368080xx" onclick="RateMsg(168649, 2368080,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd HdUnSel" id="F2368167_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="52"><a name="xx2368167xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2368167" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2368167#xx2368167xx">Re: Exception</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=3072835">Gnanadurai</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">23:03 25 Dec '07 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2368167_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 52px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">Thanks for reply,<br><br>  Getting ArgumentOutofRange exception in CanDrawMenuButton() method.I have the close button in my last Tab. <br><br><div class="ForumSig">C.Gnanadurai</div><br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2368167&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2368167&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2354829" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2368167" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2368167&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2368167" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(3072835,2368167,false,"","","");
											</script>Rate this message: <a href="#xx2368167xx" onclick="RateMsg(3072835, 2368167,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2368167xx" title="vote this message a 1" onclick="RateMsg(3072835, 2368167, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2368167xx" title="vote this message a 2" onclick="RateMsg(3072835, 2368167, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2368167xx" title="vote this message a 3" onclick="RateMsg(3072835, 2368167, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2368167xx" title="vote this message a 4" onclick="RateMsg(3072835, 2368167, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2368167xx" title="vote this message a 5" onclick="RateMsg(3072835, 2368167, 5,0)"><b>5</b></a> <a href="#xx2368167xx" onclick="RateMsg(3072835, 2368167,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd LoVote HdUnSel" id="F2369758_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="70"><a name="xx2369758xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2369758" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2369758#xx2369758xx">Re: Exception</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=168649">vijayaprasen</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">15:47 26 Dec '07 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2369758_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 70px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">Replace the OnMouseDown() with the following code..that will solve your issue..let me know if you have any issues<br><br><br> protected override void OnMouseDown(MouseEventArgs e)<br>      {<br>       <br><br>         RectangleF tabTextArea = (RectangleF)this.GetTabRect(SelectedIndex);<br>
tabTextArea = tabTextArea = new RectangleF(tabTextArea.X +
tabTextArea.Width - 22, 4, tabTextArea.Height - 3, tabTextArea.Height -
5); <br>         Point pt = new Point(e.X,e.Y);<br>         if(tabTextArea.Contains(pt))<br>         {<br>             if (this.TabCount == 1)<br>             {<br>                 MessageBox.Show("You cannot close all the tab pages");<br>                 return;<br>             }<br>             if(confirmOnClose)<br>            {<br>
if(MessageBox.Show("You are about to close
"+this.TabPages[SelectedIndex].Text.TrimEnd() + " tab. Are you sure you
want to continue?","Confirm close",MessageBoxButtons.YesNo) ==
DialogResult.No)<br>                  return;<br>            }<br>            //Fire Event to Client<br>            if(OnClose != null)<br>            {<br>               OnClose(this,new CloseEventArgs(SelectedIndex));<br>              <br>            }<br>         }<br>         if (CanDrawMenuButton(SelectedIndex))<br>         {<br>             RectangleF tabMenuArea = (RectangleF)this.GetTabRect(SelectedIndex);<br>
tabMenuArea = new RectangleF(tabMenuArea.X + tabMenuArea.Width - 43, 4,
tabMenuArea.Height - 3, tabMenuArea.Height - 5);<br>             pt = new Point(e.X, e.Y);<br>             if (tabMenuArea.Contains(pt))<br>             {<br>                 if (((TabPageEx)this.TabPages[SelectedIndex]).Menu != null)<br>                 {<br>
((TabPageEx)this.TabPages[SelectedIndex]).Menu.Show(this, new
Point((int)tabMenuArea.X, (int)(tabMenuArea.Y + tabMenuArea.Height)));<br>                 }<br>             }<br>         }<br>      }<br><br>   } <br><br><div class="ForumSig">Prakash</div><br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2369758&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2369758&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2354829" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2369758" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2369758&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2369758" style="white-space: nowrap;">2.00/5 (1 vote) <script type="text/javascript">
												MsgVFrm(168649,2369758,false,"","","");
											</script>Rate this message: <a href="#xx2369758xx" onclick="RateMsg(168649, 2369758,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2369758xx" title="vote this message a 1" onclick="RateMsg(168649, 2369758, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2369758xx" title="vote this message a 2" onclick="RateMsg(168649, 2369758, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2369758xx" title="vote this message a 3" onclick="RateMsg(168649, 2369758, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2369758xx" title="vote this message a 4" onclick="RateMsg(168649, 2369758, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2369758xx" title="vote this message a 5" onclick="RateMsg(168649, 2369758, 5,0)"><b>5</b></a> <a href="#xx2369758xx" onclick="RateMsg(168649, 2369758,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgRtDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd Rt HdUnSel" id="F2341113_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="16"><a name="xx2341113xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2341113" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2341113#xx2341113xx">Small correction needed...</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=228242">Leon v Wyk</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">8:46 29 Nov '07 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2341113_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 16px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">When
the TabControl use more than one line for the TabPages, the buttons are
still drawn on the first row. This is easily corrected by adding this
into all the Y cordinates: (tabTextArea.Y + value)<br><br>SAMPLE:<br><br><code><br>e.Graphics.DrawLine(pen, tabTextArea.X + tabTextArea.Width - 36, 11, tabTextArea.X + tabTextArea.Width - 33, 16);<br></code><br><br>SHOULD BE<br><br><code><br>e.Graphics.DrawLine(pen,
tabTextArea.X + tabTextArea.Width - 36, tabTextArea.Y + 11,
tabTextArea.X + tabTextArea.Width - 33, tabTextArea.Y + 16);<br></code> <br><br><div class="ForumSig"><b>Leon v Wyk<b></b></b></div><b><b><br></b></b></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2341113&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2341113&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2341113" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2341113" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2341113&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2341113" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(228242,2341113,false,"","","");
											</script>Rate this message: <a href="#xx2341113xx" onclick="RateMsg(228242, 2341113,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2341113xx" title="vote this message a 1" onclick="RateMsg(228242, 2341113, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2341113xx" title="vote this message a 2" onclick="RateMsg(228242, 2341113, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2341113xx" title="vote this message a 3" onclick="RateMsg(228242, 2341113, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2341113xx" title="vote this message a 4" onclick="RateMsg(228242, 2341113, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2341113xx" title="vote this message a 5" onclick="RateMsg(228242, 2341113, 5,0)"><b>5</b></a> <a href="#xx2341113xx" onclick="RateMsg(228242, 2341113,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr class="Quick">
					<td class="Frm_MsgDivide"><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="1"></td>
				</tr>
<!-- Start Message head -->

				<tr class="MsgHd HdUnSel" id="F2343978_h0">
					<td width="100%"><table class="QuickHd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" width="34"><a name="xx2343978xx"></a><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"></td><td class="Frm_MsgSubject"><a id="DynMessLink" name="2343978" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2343978#xx2343978xx">Re: Small correction needed...</a></td><td style="width: 20px; white-space: nowrap;"><img src="firefoxtabcontrol.aspx_files/member_sm.gif" title="member" alt="member" border="0" height="16"></td><td class="Frm_MsgAuthor"><a href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=168649">vijayaprasen</a></td><td class="Frm_MsgDate" style="vertical-align: top; white-space: nowrap;">17:32 30 Nov '07 &nbsp;</td>
						</tr>
					</tbody></table></td>
				</tr><!-- End Message head -->

				<tr id="F2343978_h1" style="display: none;">
					<td style="width: 100%;"><table class="QuickBd" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td class="Frm_MsgIndent" style="width: 34px;"></td><td class="MsgBd BdSel"><table border="0" cellpadding="0" cellspacing="5" width="100%">
								<tbody><tr>
									<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody><tr>
											<td colspan="2">Thanks Leon for pointing this out. <br>Have a good week end and happy X-MAS<br><br>Prakash.S <br><br><div class="ForumSig">Prakash</div><br></td>
										</tr><tr style="vertical-align: middle;">
											<td class="Frm_MsgFt"><a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2343978&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=r" title="Reply">Reply</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/Edit.aspx?fid=449196&amp;select=2343978&amp;floc=/KB/tabs/firefoxtabcontrol.aspx&amp;fa=e" title="Email">Email</a>·<a class="Frm_MHL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;sort=Position&amp;tid=2341113" title="View Thread">View Thread</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Forums/View.aspx?fid=449196&amp;msg=2343978" title="Get permanent link">PermaLink</a>·<a class="Frm_MHL" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=2343978&amp;obtid=3&amp;bma=AddBookmark" title="Bookmark this post">Bookmark</a></td><td class="Frm_MsgFt" style="text-align: right;"><span id="MVF2343978" style="white-space: nowrap;"><script type="text/javascript">
												MsgVFrm(168649,2343978,false,"","","");
											</script>Rate this message: <a href="#xx2343978xx" onclick="RateMsg(168649, 2343978,1,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_down.gif" alt="vote 1" align="middle" border="0" width="14" height="14"></a> <a class="Frm_MHL" href="#xx2343978xx" title="vote this message a 1" onclick="RateMsg(168649, 2343978, 1,0)"><b>1</b></a> <a class="Frm_MHL" href="#xx2343978xx" title="vote this message a 2" onclick="RateMsg(168649, 2343978, 2,0)"><b>2</b></a> <a class="Frm_MHL" href="#xx2343978xx" title="vote this message a 3" onclick="RateMsg(168649, 2343978, 3,0)"><b>3</b></a> <a class="Frm_MHL" href="#xx2343978xx" title="vote this message a 4" onclick="RateMsg(168649, 2343978, 4,0)"><b>4</b></a> <a class="Frm_MHL" href="#xx2343978xx" title="vote this message a 5" onclick="RateMsg(168649, 2343978, 5,0)"><b>5</b></a> <a href="#xx2343978xx" onclick="RateMsg(168649, 2343978,5,0);"><img src="firefoxtabcontrol.aspx_files/thumbs_up.gif" alt="vote 5" align="middle" border="0" width="14" height="14"></a> </span></td>
										</tr>
									</tbody></table></td>
								</tr>
							</tbody></table></td>
						</tr>
					</tbody></table></td>
				</tr><tr>
					<td><img src="firefoxtabcontrol.aspx_files/t.gif" alt="" border="0" width="1" height="5"></td>
				</tr>
			</tbody></table></td>
		</tr><tr>
			<td><table cellpadding="2" cellspacing="0" width="100%">
				<tbody><tr class="Frm_Footer">
					<td>Last Visit: Saturday, November 15, 2008 4:11 AM &nbsp; &nbsp; Last Update:Monday, November 17, 2008 11:27 PM</td><td style="text-align: right; white-space: nowrap;"><b>1</b><a class="Frm_HL" name="Frm_HoverNL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;fr=26#xx0xx">2</a> <a class="Frm_HL" name="Frm_HoverNL" href="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx?fid=449196&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;fr=26#xx0xx">Next »</a></td>
				</tr>
			</tbody></table></td>
		</tr>
	</tbody></table>
</div><p class="SmallText"><img src="firefoxtabcontrol.aspx_files/msg_general.gif" alt="General" align="top" width="16" height="16"> General &nbsp;&nbsp; <img src="firefoxtabcontrol.aspx_files/msg_news.gif" alt="News" align="top" width="16" height="16"> News &nbsp;&nbsp; <img src="firefoxtabcontrol.aspx_files/msg_question.gif" alt="Question" align="top" width="16" height="16"> Question &nbsp;&nbsp; <img src="firefoxtabcontrol.aspx_files/msg_answer.gif" alt="Answer" align="top" width="16" height="16"> Answer &nbsp;&nbsp; <img src="firefoxtabcontrol.aspx_files/msg_joke.gif" alt="Joke" align="top" width="16" height="16"> Joke &nbsp;&nbsp; <img src="firefoxtabcontrol.aspx_files/msg_rant.gif" alt="Rant" align="top" width="16" height="16"> Rant &nbsp;&nbsp; <img src="firefoxtabcontrol.aspx_files/msg_admin.gif" alt="Admin" align="top" width="16" height="16"> Admin &nbsp;&nbsp; </p>
<!-- Forum End -->




	
	</div>
	<table width="100%">
	<tbody><tr valign="top">
		<td class="TinyText" align="left">
		    <a id="ctl00_PermaLink" href="http://www.codeproject.com/script/Articles/Article.aspx?aid=20050">PermaLink</a> | 
			<a id="ctl00_PrivacyLink" href="http://www.codeproject.com/info/privacy.aspx">Privacy</a> |
			<a id="ctl00_TermsOfUseLink" href="http://www.codeproject.com/info/TermsOfUse.aspx">Terms of Use</a>
			<br>Last Updated: 24 Jun 2008<br>
			Editor: <a id="ctl00_ArticleEditor" href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=3873871">Sean Ewington</a><br>
		</td>
		<td class="TinyText" align="right" valign="top">
			Copyright 2007 by vijayaprasen<br>Everything else
			Copyright © <a href="mailto:webmaster@codeproject.com">CodeProject</a>, 1999-2008 <br>
			Web17 |
			<a id="ctl00_AdvertiseLink" href="http://www.codeproject.com/info/MediaKit.aspx">Advertise on the Code Project </a>
		</td>
	</tr>
	
	</tbody></table>
	
	<center>
		
	</center>
</td>
</tr>
<tr>
	<td colspan="2" align="center">
	



	</td>
</tr>
</tbody></table>

<br>
<script type="text/javascript" language="Javascript">//<![CDATA[
if (document.all) try {window.attachEvent("oncopy",copyCode);}catch(e){};
//]]></script>

<script type="text/javascript" language="Javascript" src="firefoxtabcontrol.aspx_files/TogglePre.js"></script>
<script type="text/javascript" language="Javascript" src="firefoxtabcontrol.aspx_files/menu132_com.js"></script>
<script type="text/javascript" language="Javascript" src="firefoxtabcontrol.aspx_files/TopNavBar.js"></script>
<script type="text/javascript" language="Javascript">//<![CDATA[
new HVMenu(new menu_NavbarConfig());
//]]></script>

<script type="text/javascript" language="Javascript">//<![CDATA[
$(document).ready(function() {RetrieveJobsSummary('Th',20050,2,185,"65,162,94,98,103,112,118,153");});
//]]></script>


<div style="position: absolute; visibility: visible; z-index: 101; width: 386px; height: 22px; top: 119px; left: 858px;"><div class="NavBarMain" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 40px; height: 16px; padding-left: 5px; padding-top: 2px; left: 7px; top: 2px;">Help!</div><div class="NavBarMain" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 55px; height: 16px; padding-left: 5px; padding-top: 2px; left: 55px; top: 2px;">Articles</div><div class="NavBarMain" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 115px; height: 16px; padding-left: 5px; padding-top: 2px; left: 118px; top: 2px;">Message Boards</div><div class="NavBarMain" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 75px; height: 16px; padding-left: 5px; padding-top: 2px; left: 241px; top: 2px;">Job Board</div><div class="NavBarMain" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 55px; height: 16px; padding-left: 5px; padding-top: 2px; left: 324px; top: 2px;">Lounge</div></div><div class="NavBarCont" style="position: absolute; visibility: hidden; z-index: 102; width: 198px; height: 104px; top: 0pt; left: 0pt;"><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 183px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 5px;">What is 'The Code Project'?</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 183px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 24px;">General FAQ</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 183px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 43px;">Post a Question</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 183px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 62px;">Site Directory</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 183px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 81px;">About Us</div></div><div class="NavBarCont" style="position: absolute; visibility: hidden; z-index: 102; width: 158px; height: 161px; top: 0pt; left: 0pt;"><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 143px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 5px;">Latest</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 143px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 24px;">Search</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 143px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 43px;">Most Popular</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 143px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 62px;">Beginner Articles</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 143px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 81px;">Topic List</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 143px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 100px;">Submit an Article</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 143px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 119px;">Update an Article</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 143px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 138px;">Article Competition</div></div><div class="NavBarCont" style="position: absolute; visibility: hidden; z-index: 102; width: 183px; height: 389px; top: 0pt; left: 0pt;"><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 5px;">ASP.NET</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 24px;">ATL / WTL / STL</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 43px;">C++ / MFC</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 62px;">(Managed) C++/CLI</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 81px;">C#</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 100px;">COM</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 119px;">Hardware</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 138px;">LINQ and .NET 3.5</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 157px;">.NET Framework</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 176px;">OS / SysAdmin</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 195px;">Silverlight</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 214px;">SQL and Database</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 233px;">VB.NET</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 252px;">Web Development</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 271px;">WPF / WCF / WF</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 290px;">XML / XSL</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 309px;">General Discussions</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 328px;">Suggestions / Site Bugs</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 347px;">The Soapbox</div><div class="NavBarSub" style="overflow: hidden; position: absolute; visibility: inherit; cursor: pointer; width: 168px; height: 16px; padding-left: 5px; padding-top: 2px; left: 5px; top: 366px;">All Message Boards...</div></div></body></html>